diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-05-12 22:25:20 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-05-12 22:25:20 -0700 |
| commit | a7aa3ca66c271bc6f2905e4c3f0dd78763584d5b (patch) | |
| tree | 24e232f653f0e57b9c5d988cd3e10ccf842add65 /src/Compilation.zig | |
| parent | 344dc0cc0ffcd32ffb07c43ca7123b8564f2a506 (diff) | |
| download | zig-a7aa3ca66c271bc6f2905e4c3f0dd78763584d5b.tar.gz zig-a7aa3ca66c271bc6f2905e4c3f0dd78763584d5b.zip | |
stage2: build and provide libunwind when compiling for native libc
5ac91794cce8bd53916a378815be01e4365d53d9 made Zig link against the
system libc when targeting the native C ABI. However this made it stop
putting libunwind.a on the linker line when it needed to sometimes,
causing undefined symbols when linking against C++ code.
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 992b1685df..70a61af57a 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -3278,7 +3278,6 @@ fn wantBuildLibUnwindFromSource(comp: *Compilation) bool { .Exe => true, }; return comp.bin_file.options.link_libc and is_exe_or_dyn_lib and - comp.bin_file.options.libc_installation == null and comp.bin_file.options.object_format != .c and target_util.libcNeedsLibUnwind(comp.getTarget()); } |
