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.
This commit is contained in:
commit
c366b27bfc
1 changed files with 1 additions and 0 deletions
|
|
@ -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![
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue