diff options
| -rw-r--r-- | src/libunwind/build.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libunwind/build.rs b/src/libunwind/build.rs index 1462639259c..00749d93d55 100644 --- a/src/libunwind/build.rs +++ b/src/libunwind/build.rs @@ -90,6 +90,8 @@ mod llvm_libunwind { cfg.flag("-fstrict-aliasing"); cfg.flag("-funwind-tables"); cfg.flag("-fvisibility=hidden"); + cfg.flag_if_supported("-fvisibility-global-new-delete-hidden"); + cfg.define("_LIBUNWIND_DISABLE_VISIBILITY_ANNOTATIONS", None); } let mut unwind_sources = vec