aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-05-13 11:52:58 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-05-13 17:40:39 -0400
commit76a259799d5bac3effabd1df44c0dec9e4fa16d4 (patch)
tree8316f31b4728d4fa1a5b2a4024cf6fadd84a3981 /src/Compilation.zig
parent173142cc3662e9ecd54c8e957763515712203f9c (diff)
downloadzig-76a259799d5bac3effabd1df44c0dec9e4fa16d4.tar.gz
zig-76a259799d5bac3effabd1df44c0dec9e4fa16d4.zip
stage2: only build and link libunwind when linking libc++
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index b14e598f71..0f04f02b7d 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -3023,6 +3023,7 @@ 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.link_libcpp and
target_util.libcNeedsLibUnwind(comp.getTarget());
}