diff options
author | Marc Poulhiès <dkm@kataplop.net> | 2023-01-11 19:39:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-11 19:39:25 +0100 |
commit | 69055681d9bb5fa85fc952ec6c198e69abb7195c (patch) | |
tree | c2be3f68a0cf8b96b9664b2481b8868937a4b1f7 /lib/compilers/rust.ts | |
parent | e463458a5c30b62d9ae4505bf469cc36643790ee (diff) | |
download | compiler-explorer-69055681d9bb5fa85fc952ec6c198e69abb7195c.tar.gz compiler-explorer-69055681d9bb5fa85fc952ec6c198e69abb7195c.zip |
Support for compiling to binary object (#3232)gh-5742
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'); |