diff options
author | Matt Godbolt <matt@godbolt.org> | 2019-04-06 02:53:29 -0500 |
---|---|---|
committer | Matt Godbolt <matt@godbolt.org> | 2019-04-06 02:53:29 -0500 |
commit | bf27f2e9dc8e280fee95a05f6b6949a34105d849 (patch) | |
tree | c3bef643e2871df7f5e44b322588da4c9b372698 /lib/compilers/argument-parsers.js | |
parent | 6f6bcbb98b95b38310b72f36b3d9c50e67ef7b99 (diff) | |
download | compiler-explorer-bf27f2e9dc8e280fee95a05f6b6949a34105d849.tar.gz compiler-explorer-bf27f2e9dc8e280fee95a05f6b6949a34105d849.zip |
Support Intel syntax in ispc. See #1253
Diffstat (limited to 'lib/compilers/argument-parsers.js')
-rw-r--r-- | lib/compilers/argument-parsers.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/compilers/argument-parsers.js b/lib/compilers/argument-parsers.js index 0476ad827..ffdd8469c 100644 --- a/lib/compilers/argument-parsers.js +++ b/lib/compilers/argument-parsers.js @@ -143,7 +143,13 @@ class PascalParser extends BaseParser { class ISPCParser extends BaseParser { static parse(compiler) { - return ISPCParser.getOptions(compiler, "--help").then(() => compiler); + return ISPCParser.getOptions(compiler, "--help").then(options => { + if (BaseParser.hasSupport(options, "--x86-asm-syntax")) { + compiler.compiler.intelAsm = "--x86-asm-syntax=intel"; + compiler.compiler.supportsIntel = true; + } + return compiler; + }); } static getOptions(compiler, helpArg) { |