diff options
author | Matt Godbolt <mgodbolt@drw.com> | 2016-12-19 20:49:32 -0600 |
---|---|---|
committer | Matt Godbolt <mgodbolt@drw.com> | 2016-12-19 20:49:32 -0600 |
commit | d37dc9784475e597604891c6df5d20dc1ba3cfbf (patch) | |
tree | 929a3949e73670585990399ee5fc95a4ca7a1368 /lib/compilers/rust.js | |
parent | c82915e3749f399c99b6842e435de327ff5e5cb1 (diff) | |
download | compiler-explorer-d37dc9784475e597604891c6df5d20dc1ba3cfbf.tar.gz compiler-explorer-d37dc9784475e597604891c6df5d20dc1ba3cfbf.zip |
More rust fixes; should address #139
Diffstat (limited to 'lib/compilers/rust.js')
-rw-r--r-- | lib/compilers/rust.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/compilers/rust.js b/lib/compilers/rust.js index 671a691d6..c980143f7 100644 --- a/lib/compilers/rust.js +++ b/lib/compilers/rust.js @@ -26,12 +26,14 @@ var Compile = require('../base-compiler'); function compileRust(info, env) { var compiler = new Compile(info, env); - // TODO this needs testing! compiler.optionsForFilter = function (filters, outputFilename) { var options = ['-g', '-o', this.filename(outputFilename)]; // TODO: binary not supported(?) - if (!filters.binary) options = options.concat('--emit', 'asm'); - options = options.concat(['--crate-type', 'staticlib']); + if (!filters.binary) { + options = options.concat('--emit', 'asm'); + if (filters.intel) options = options.concat('-Cllvm-args=--x86-asm-syntax=intel'); + } + options = options.concat(['--crate-type', 'rlib']); return options; }; return compiler; |