src/libunwind.zig: Fix symbol visibility macro define

The define was changed in commit 729899f7b6bf6aff65988d895d7a639391a67608
in upstream llvm.
This commit is contained in:
Luis Cáceres 2025-04-11 22:56:51 +01:00 committed by Alex Rønne Petersen
parent 527df938e1
commit ebb37e719d
No known key found for this signature in database

View file

@ -119,7 +119,7 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr
}
try cflags.append("-I");
try cflags.append(try comp.zig_lib_directory.join(arena, &[_][]const u8{ "libunwind", "include" }));
try cflags.append("-D_LIBUNWIND_DISABLE_VISIBILITY_ANNOTATIONS");
try cflags.append("-D_LIBUNWIND_HIDE_SYMBOLS");
try cflags.append("-Wa,--noexecstack");
try cflags.append("-fvisibility=hidden");
try cflags.append("-fvisibility-inlines-hidden");