[llvm] 93a04a0 - [gn] Fix libunwind build on mac after 203b6f31bb7

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 18 14:20:18 PDT 2023


Author: Nico Weber
Date: 2023-03-18T22:20:07+01:00
New Revision: 93a04a0591c1958d5344f3541157fbd8b8ff7370

URL: https://github.com/llvm/llvm-project/commit/93a04a0591c1958d5344f3541157fbd8b8ff7370
DIFF: https://github.com/llvm/llvm-project/commit/93a04a0591c1958d5344f3541157fbd8b8ff7370.diff

LOG: [gn] Fix libunwind build on mac after 203b6f31bb7

See #61501 and https://reviews.llvm.org/D143637#4204277 for details.

Added: 
    

Modified: 
    llvm/utils/gn/secondary/libunwind/src/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/libunwind/src/BUILD.gn b/llvm/utils/gn/secondary/libunwind/src/BUILD.gn
index 87bde59010913..f4aa67afbe13c 100644
--- a/llvm/utils/gn/secondary/libunwind/src/BUILD.gn
+++ b/llvm/utils/gn/secondary/libunwind/src/BUILD.gn
@@ -91,6 +91,7 @@ if (libunwind_enable_shared && current_os != "android") {
       ]
     }
     if (current_os == "mac") {
+      cflags += [ "-fno-stack-protector" ]
       ldflags += [
         "-Wl,-compatibility_version,1",
         "-Wl,-install_name,/usr/lib/libunwind.1.dylib",


        


More information about the llvm-commits mailing list