Skip to content

Commit

Permalink
Rollup merge of #71929 - petrhosek:unwind-visibility, r=tmandry
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Dylan-DPC authored May 6, 2020
2 parents d30988e + 32d1a4b commit c366b27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libunwind/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ mod llvm_libunwind {
cfg.flag("-fno-rtti");
cfg.flag("-fstrict-aliasing");
cfg.flag("-funwind-tables");
cfg.flag("-fvisibility=hidden");
}

let mut unwind_sources = vec![
Expand Down

0 comments on commit c366b27

Please sign in to comment.