Skip to content

Commit b46a393

Browse files
authored
Rollup merge of rust-lang#145175 - bjorn3:solaris_limit_rdylib_exports, r=lqd
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: [#t-compiler > solaris limit_rdylib_exports @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/solaris.20limit_rdylib_exports/near/533480771)
2 parents f8212b0 + 6de338b commit b46a393

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)