diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-12-22 19:25:24 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-12-24 01:18:48 -0700 |
| commit | 8219d92987c7d9641d6b24c4d5be29e3a80fd6b9 (patch) | |
| tree | 026578eeb7d11f5813d081025763f064401536e1 /src/libunwind.zig | |
| parent | 42b4a48bc96ce22562230cd1a266f93a013c76dd (diff) | |
| download | zig-8219d92987c7d9641d6b24c4d5be29e3a80fd6b9.tar.gz zig-8219d92987c7d9641d6b24c4d5be29e3a80fd6b9.zip | |
stage2: fix Cache deadlock and build more of TSAN
* rename is_compiler_rt_or_libc to skip_linker_dependencies
and set it to `true` for all sub-Compilations. I believe
this resolves the deadlock we were experiencing on Drone
CI and on some users' computers. I will remove the CI workaround in
a follow-up commit.
* enabling TSAN automatically causes the Compilation to link against
libc++ even if not requested, because TSAN depends on libc++.
* add -fno-rtti flags where appropriate when building TSAN objects.
Thanks Firefox317 for pointing this out.
* TSAN support: resolve all the undefined symbols. We are still seeing
a dependency on __gcc_personality_v0 but will resolve this one in a
follow-up commit.
* static libs do not try to build libc++ or libc++abi.
Diffstat (limited to 'src/libunwind.zig')
| -rw-r--r-- | src/libunwind.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libunwind.zig b/src/libunwind.zig index a0da7ee1fb..db1056b776 100644 --- a/src/libunwind.zig +++ b/src/libunwind.zig @@ -122,6 +122,7 @@ pub fn buildStaticLib(comp: *Compilation) !void { .verbose_llvm_cpu_features = comp.verbose_llvm_cpu_features, .clang_passthrough_mode = comp.clang_passthrough_mode, .link_libc = true, + .skip_linker_dependencies = true, }); defer sub_compilation.destroy(); |
