diff options
| author | Cody Tapscott <topolarity@tapscott.me> | 2022-07-11 18:46:24 -0700 |
|---|---|---|
| committer | Cody Tapscott <topolarity@tapscott.me> | 2022-07-28 22:21:24 -0700 |
| commit | b0525344a2b0b158369251c031159bef241048da (patch) | |
| tree | ff088aec78d7471d1d2f6c92ee5a05ec9f2439fb /src/Cache.zig | |
| parent | 0fc79d602bf9b3a5c97cfc28b59193b005692cb2 (diff) | |
| download | zig-b0525344a2b0b158369251c031159bef241048da.tar.gz zig-b0525344a2b0b158369251c031159bef241048da.zip | |
Add check to verify libc++ is shared by LLVM/Clang
This check is needed because if static/dynamic linking is mixed incorrectly,
it's possible for Clang and LLVM to end up with duplicate "copies" of libc++.
This is not benign: Static variables are not shared, so equality comparisons
that depend on pointers to static variables will fail. One such failure is
std::generic_category(), which causes POSIX error codes to compare as unequal
when passed between LLVM and Clang.
I believe this is the cause of https://github.com/ziglang/zig/issues/11168
In order to avoid affecting build times when Zig is repeatedly invoked,
we only enable this check for "zig env" and "zig version"
Diffstat (limited to 'src/Cache.zig')
0 files changed, 0 insertions, 0 deletions
