diff options
Diffstat (limited to 'lib/compilers/rust.ts')
-rw-r--r-- | lib/compilers/rust.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compilers/rust.ts b/lib/compilers/rust.ts index b0cb6484c..0fbce4e0c 100644 --- a/lib/compilers/rust.ts +++ b/lib/compilers/rust.ts @@ -138,6 +138,8 @@ export class RustCompiler extends BaseCompiler { if (this.linker) { options = options.concat(`-Clinker=${this.linker}`); } + } else if (filters.binaryObject) { + options = options.concat(['--crate-type', 'lib']); } else { if (!userRequestedEmit) { options = options.concat('--emit', 'asm'); |