diff options
Diffstat (limited to 'lib/compilers/ada.js')
-rw-r--r-- | lib/compilers/ada.js | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/compilers/ada.js b/lib/compilers/ada.js index 26f4d7102..51a1f77b5 100644 --- a/lib/compilers/ada.js +++ b/lib/compilers/ada.js @@ -61,7 +61,7 @@ class AdaCompiler extends BaseCompiler { return source; } - runCompiler(compiler, options, inputFilename, execOptions) { + async runCompiler(compiler, options, inputFilename, execOptions) { if (!execOptions) { execOptions = this.getDefaultExecOptions(); } @@ -71,20 +71,18 @@ class AdaCompiler extends BaseCompiler { // find where the '-cargs' flag is in options. This is to allow us to set the // output as 'output.s' and not end up with 'example.s'. If the output is left // as 'example.s' CE can't find it and thus you get no output. - let inputFileName = options.pop(); + const inputFileName = options.pop(); for (let i = 0; i < options.length; i++) { if (options[i] === '-cargs') { options.splice(i, 0, inputFileName); break; } } - return this.exec(compiler, options, execOptions) - .then(result => { - result.inputFilename = inputFilename; - result.stdout = utils.parseOutput(result.stdout, inputFilename); - result.stderr = utils.parseOutput(result.stderr, inputFilename); - return result; - }); + const result = await this.exec(compiler, options, execOptions); + result.inputFilename = inputFilename; + result.stdout = utils.parseOutput(result.stdout, inputFilename); + result.stderr = utils.parseOutput(result.stderr, inputFilename); + return result; } } |