Skip to content

Commit c4411ff

Browse files
committed
Use -C debuglevel=1 to maybe mitigate compiler-explorer#79
1 parent 314c062 commit c4411ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/compilers/rust.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function compileRust(info, env) {
2828
var compiler = new Compile(info, env);
2929
compiler.compiler.supportsIntel = true;
3030
compiler.optionsForFilter = function (filters, outputFilename) {
31-
var options = ['-g', '-o', this.filename(outputFilename)];
31+
var options = ['-C', 'debuginfo=1', '-o', this.filename(outputFilename)];
3232
// TODO: binary not supported(?)
3333
if (!filters.binary) {
3434
options = options.concat('--emit', 'asm');
@@ -40,4 +40,4 @@ function compileRust(info, env) {
4040
return compiler.initialise();
4141
}
4242

43-
module.exports = compileRust;
43+
module.exports = compileRust;

0 commit comments

Comments
 (0)