diff options
author | Matt Godbolt <matt@godbolt.org> | 2021-10-31 15:31:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-31 15:31:45 -0500 |
commit | cf7d70402ef014e53ba7852a6f19a8ea162a38bc (patch) | |
tree | ee0d998ae1380572403fb47ca2d6dfd2a4588812 /lib/compilers/argument-parsers.js | |
parent | 07521660bbb01e3b039fd2cdbcf0389d8fdfc5fe (diff) | |
download | compiler-explorer-cf7d70402ef014e53ba7852a6f19a8ea162a38bc.tar.gz compiler-explorer-cf7d70402ef014e53ba7852a6f19a8ea162a38bc.zip |
Await for things (#3086)gh-1229
* Await for things
We had a number of things that aren't await()ing their promises.
That led to non-deterministic compiler settings like Intel support.
I used the IDE to find them all and fix the ones that I thought looked
important.
More generally we should use tslint (once we're all typescript) to
ensure this more generally. I tried the eslint equivalent but it
either overreacted or didn't catch anything.
Closes #3085
Diffstat (limited to 'lib/compilers/argument-parsers.js')
-rw-r--r-- | lib/compilers/argument-parsers.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/compilers/argument-parsers.js b/lib/compilers/argument-parsers.js index 6c05a4d12..c64de8549 100644 --- a/lib/compilers/argument-parsers.js +++ b/lib/compilers/argument-parsers.js @@ -110,7 +110,7 @@ export class GCCParser extends BaseParser { GCCParser.getOptions(compiler, '-fsyntax-only --help=optimizers'), ]); const options = Object.assign({}, ...results); - this.setCompilerSettingsFromOptions(compiler, options); + await this.setCompilerSettingsFromOptions(compiler, options); return compiler; } @@ -147,7 +147,7 @@ export class ClangParser extends BaseParser { static async parse(compiler) { const options = await ClangParser.getOptions(compiler, '--help'); - this.setCompilerSettingsFromOptions(compiler, options); + await this.setCompilerSettingsFromOptions(compiler, options); return compiler; } } @@ -169,7 +169,7 @@ export class ISPCParser extends BaseParser { static async parse(compiler) { const options = await ISPCParser.getOptions(compiler, '--help'); - this.setCompilerSettingsFromOptions(compiler, options); + await this.setCompilerSettingsFromOptions(compiler, options); return compiler; } @@ -290,7 +290,7 @@ export class RustParser extends BaseParser { RustParser.getOptions(compiler, '--help -v'), ]); const options = Object.assign({}, ...results); - this.setCompilerSettingsFromOptions(compiler, options); + await this.setCompilerSettingsFromOptions(compiler, options); return compiler; } |