diff options
Diffstat (limited to 'rust/binary.go')
-rw-r--r-- | rust/binary.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rust/binary.go b/rust/binary.go index e95cb3afc..2758ae077 100644 --- a/rust/binary.go +++ b/rust/binary.go @@ -145,6 +145,9 @@ func (binary *binaryDecorator) autoDep(ctx BaseModuleContext) autoDep { } } -func (binary *binaryDecorator) staticStd(ctx *depsContext) bool { - return binary.baseCompiler.staticStd(ctx) || Bool(binary.Properties.Prefer_rlib) +func (binary *binaryDecorator) stdLinkage(ctx *depsContext) RustLinkage { + if Bool(binary.Properties.Prefer_rlib) { + return RlibLinkage + } + return binary.baseCompiler.stdLinkage(ctx) } |