Skip to content

Commit

Permalink
Use -C debuglevel=1 to maybe mitigate compiler-explorer#79
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgodbolt committed Dec 23, 2016
1 parent 314c062 commit c4411ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/compilers/rust.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function compileRust(info, env) {
var compiler = new Compile(info, env);
compiler.compiler.supportsIntel = true;
compiler.optionsForFilter = function (filters, outputFilename) {
var options = ['-g', '-o', this.filename(outputFilename)];
var options = ['-C', 'debuginfo=1', '-o', this.filename(outputFilename)];
// TODO: binary not supported(?)
if (!filters.binary) {
options = options.concat('--emit', 'asm');
Expand All @@ -40,4 +40,4 @@ function compileRust(info, env) {
return compiler.initialise();
}

module.exports = compileRust;
module.exports = compileRust;

0 comments on commit c4411ff

Please sign in to comment.