diff options
Diffstat (limited to 'rust/library.go')
-rw-r--r-- | rust/library.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/rust/library.go b/rust/library.go index 2792c5b4a..7a77706a9 100644 --- a/rust/library.go +++ b/rust/library.go @@ -158,9 +158,12 @@ func (library *libraryDecorator) static() bool { return library.MutatedProperties.VariantIsStatic } -func (library *libraryDecorator) staticStd(ctx *depsContext) bool { - // libraries should only request the staticStd when building a static FFI or when variant is staticStd - return library.static() || library.MutatedProperties.VariantIsStaticStd +func (library *libraryDecorator) stdLinkage(ctx *depsContext) RustLinkage { + // libraries should only request the RlibLinkage when building a static FFI or when variant is StaticStd + if library.static() || library.MutatedProperties.VariantIsStaticStd { + return RlibLinkage + } + return DefaultLinkage } func (library *libraryDecorator) source() bool { |