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/ispc.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/ispc.js')
-rw-r--r-- | lib/compilers/ispc.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/compilers/ispc.js b/lib/compilers/ispc.js index bb571dd8a..5d91f4446 100644 --- a/lib/compilers/ispc.js +++ b/lib/compilers/ispc.js @@ -27,7 +27,11 @@ const BaseCompiler = require('../base-compiler'), class ISPCCompiler extends BaseCompiler { optionsForFilter(filters, outputFilename) { - return ['--target=sse2-i32x4', '--emit-asm', '-g', '-o', this.filename(outputFilename)]; + let options = ['--target=sse2-i32x4', '--emit-asm', '-g', '-o', this.filename(outputFilename)] + if (this.compiler.intelAsm && filters.intel && !filters.binary) { + options = options.concat(this.compiler.intelAsm.split(" ")); + } + return options; } getArgumentParser() { |