From 76a259799d5bac3effabd1df44c0dec9e4fa16d4 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 13 May 2021 11:52:58 -0700 Subject: stage2: only build and link libunwind when linking libc++ --- src/Compilation.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Compilation.zig') 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()); } -- cgit v1.2.3