Skip to content

Commit 6de338b

Browse files
committed
Enable limit_rdylib_exports on Solaris
This (poorly named) target option controls whether or not cdylibs will export mangled rust symbols rather than just unmangled symbols. Presumably at some point in the past support for this wasn't implemented yet for Solaris, but cg_ssa::back::linker does have handling for this on Solaris now. And one of the Solaris target maintainers confirmed that building Rust with this option enabled works fine for them on Solaris.
1 parent ca77504 commit 6de338b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_target/src/spec/base/solaris.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ pub(crate) fn opts() -> TargetOptions {
88
families: cvs!["unix"],
99
is_like_solaris: true,
1010
linker_flavor: LinkerFlavor::Unix(Cc::Yes),
11-
limit_rdylib_exports: false, // Linker doesn't support this
1211
eh_frame_header: false,
1312

1413
..Default::default()

0 commit comments

Comments
 (0)