Skip to content

Commit c366b27

Browse files
authoredMay 6, 2020
Rollup merge of #71929 - petrhosek:unwind-visibility, r=tmandry
Use -fvisibility=hidden for libunwind We don't want to export any symbols from Rust's version of libunwind as these may collide with other copies of libunwind e.g. when linking Rust staticlib together C/C++ libraries that have their own version.
2 parents d30988e + 32d1a4b commit c366b27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

Diff for: ‎src/libunwind/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ mod llvm_libunwind {
8989
cfg.flag("-fno-rtti");
9090
cfg.flag("-fstrict-aliasing");
9191
cfg.flag("-funwind-tables");
92+
cfg.flag("-fvisibility=hidden");
9293
}
9394

9495
let mut unwind_sources = vec![

0 commit comments

Comments
 (0)
Please sign in to comment.