diff --git a/src/libunwind/build.rs b/src/libunwind/build.rs index c8d2419ab45..1462639259c 100644 --- a/src/libunwind/build.rs +++ b/src/libunwind/build.rs @@ -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![