mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 13:58:27 +00:00
zig cc: expose header files when linking libunwind
This commit is contained in:
parent
1df993706a
commit
8275c771c8
@ -2776,6 +2776,15 @@ pub fn addCCArgs(
|
||||
try argv.append("-D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS");
|
||||
}
|
||||
|
||||
if (comp.bin_file.options.link_libunwind) {
|
||||
const libunwind_include_path = try std.fs.path.join(arena, &[_][]const u8{
|
||||
comp.zig_lib_directory.path.?, "libunwind", "include",
|
||||
});
|
||||
|
||||
try argv.append("-isystem");
|
||||
try argv.append(libunwind_include_path);
|
||||
}
|
||||
|
||||
const llvm_triple = try @import("codegen/llvm.zig").targetTriple(arena, target);
|
||||
try argv.appendSlice(&[_][]const u8{ "-target", llvm_triple });
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user