aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/ispc.js
diff options
context:
space:
mode:
authorJoshua Sheard <mail@jsheard.com>2017-06-03 22:26:50 +0100
committerJoshua Sheard <mail@jsheard.com>2017-06-03 22:26:50 +0100
commit4fc0ec68df9e6a7d14bffb4b691c94e95a107a93 (patch)
tree2211f7a68d5cc4dcd90de86028b54be38cba5c45 /lib/compilers/ispc.js
parent2e76244c31e21964535cc2c9deff8b19a7887377 (diff)
downloadcompiler-explorer-4fc0ec68df9e6a7d14bffb4b691c94e95a107a93.tar.gz
compiler-explorer-4fc0ec68df9e6a7d14bffb4b691c94e95a107a93.zip
Add support for Intel ISPC compiler
Diffstat (limited to 'lib/compilers/ispc.js')
-rw-r--r--lib/compilers/ispc.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/compilers/ispc.js b/lib/compilers/ispc.js
new file mode 100644
index 000000000..79912e735
--- /dev/null
+++ b/lib/compilers/ispc.js
@@ -0,0 +1,11 @@
+var Compile = require('../base-compiler');
+
+function compileISPC(info, env) {
+ var compiler = new Compile(info, env);
+ compiler.optionsForFilter = function (filters, outputFilename) {
+ return ['--emit-asm', '-g', '-o', this.filename(outputFilename)];
+ };
+ return compiler.initialise();
+}
+
+module.exports = compileISPC;