diff options
Diffstat (limited to 'lib/compilers/mrustc.js')
-rw-r--r-- | lib/compilers/mrustc.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/compilers/mrustc.js b/lib/compilers/mrustc.js index ab8ff52cb..90739e5f9 100644 --- a/lib/compilers/mrustc.js +++ b/lib/compilers/mrustc.js @@ -38,7 +38,10 @@ export class MrustcCompiler extends BaseCompiler { // Craft the 'outname' to have the intermediate .c file writen in outputFilename. let outname = path.join(path.dirname(this.filename(outputFilename)), path.basename(this.filename(outputFilename), '.c')); - return ['-o', outname, '-L', path.join(path.dirname(this.compiler.exe), '..', 'output')]; + + // Currently always targets a rlib, no binary support at the moment. + return ['--crate-type', 'rlib', + '-o', outname, '-L', path.join(path.dirname(this.compiler.exe), '..', 'output')]; } async runCompiler(compiler, options, inputFilename, execOptions) { |