0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/src
Andrew Kelley 4cfeb9a541 glibc: fix race condition when building stubs
Before, the code for building glibc stubs used a special case of the
Cache API that did not add any file inputs, and did not use
writeManifest(). This is not really how the Cache API is designed to
work and it shows because there was a race condition.

This commit adds as an input file the abilists file that comes with
Zig's installation, which has the added benefit of making glibc stub
caching properly detect cache invalidation when the user decides to
overwrite their abilists file. This harmonizes with the rest of how Zig
works, which intentionally allows you to hack the installation files and
have it behave properly with the cache system.

Finally, because of having any file inputs, the normal API flow of the
Cache system can be used, eliminating the one place that used the Cache
API in a special way. In other words, it uses writeManifest() now and
properly obeys the cache hit/miss semantics.

closes #13160
History 2022-10-29 12:15:47 -07:00
..
arch Sema: use runtime_value instead of creating allocs 2022-10-27 21:08:25 -04:00
autodoc docgen: add f80 to builtin types 2022-09-14 20:08:34 -04:00
codegen Merge pull request #13288 from Vexu/opt-slice 2022-10-27 22:09:17 -04:00
link use fixed-size arrays for feature lists 2022-10-25 21:16:51 +02:00
stage1 CMake: detect use of CMAKE_PREFIX_PATH env var 2022-10-22 20:30:08 -07:00
translate_c translate-c: Better support for division in macros 2022-10-28 17:59:32 -04:00
Air.zig stage2: Keep error return traces alive when storing to const 2022-10-21 12:40:29 -07:00
AstGen.zig AstGen: fix refing inferred allocs 2022-10-27 01:31:18 +03:00
Autodoc.zig all: rename @maximum to @max and @minimum to @min 2022-10-18 14:15:16 +03:00
BuiltinFn.zig all: rename @maximum to @max and @minimum to @min 2022-10-18 14:15:16 +03:00
Cache.zig std.fmt: require specifier for unwrapping ?T and E!T 2022-07-26 11:25:49 -07:00
clang.zig translate-c: packed struct implies align(1) on every field 2022-10-01 15:22:10 -07:00
clang_options.zig zig cc: honor all -m and -mno- CPU feature flags 2021-11-26 19:59:33 -07:00
clang_options_data.zig Revert "adding static and dynamic ZigEquivalent 2022-10-18 14:16:07 -07:00
codegen.zig stage2: Use mem.readPackedInt etc. for packed bitcasts 2022-10-28 08:41:04 -07:00
Compilation.zig CLI: report error when -fstage1 requested but not available 2022-10-28 15:30:04 -07:00
config.zig.in build: add -Donly-c option 2022-10-23 20:05:12 -07:00
crash_report.zig std: add return address parameter to panic fn 2022-09-20 19:05:00 -07:00
DepTokenizer.zig allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00:00
empty.zig fix wrong entrypoint, undefined package, and wrong build option 2020-12-07 17:27:09 -07:00
glibc.zig glibc: fix race condition when building stubs 2022-10-29 12:15:47 -07:00
InternPool.zig stage2: rename InternArena to InternPool 2022-04-06 11:50:23 -07:00
introspect.zig stage2: Move WASI/Zig-specific selfExePath to introspect.zig 2022-04-18 23:06:49 -07:00
libc_installation.zig std.mem: add first method to SplitIterator and SplitBackwardsIterator 2022-07-25 22:04:30 +03:00
libcxx.zig libcxx: only pass -DHAVE___CXA_THREAD_ATEXIT_IMPL for glibc 2022-10-27 01:03:11 -04:00
libtsan.zig stage2: implement stack protectors 2022-08-19 03:41:13 -07:00
libunwind.zig fix libc++ exceptions for musl targets 2022-09-13 11:38:14 -07:00
link.zig use fixed-size arrays for feature lists 2022-10-25 21:16:51 +02:00
Liveness.zig stage2: Add .save_err_return_trace_index AIR op 2022-10-21 10:44:20 -07:00
main.zig Revert "adding static and dynamic ZigEquivalent 2022-10-18 14:16:07 -07:00
mingw.zig mingw-w64: pass -D__USE_MINGW_ANSI_STDIO=0 for crt files 2022-10-11 01:59:39 -07:00
Module.zig remove test case triggering generic deletion bug 2022-10-27 01:31:05 +03:00
musl.zig stage2: implement stack protectors 2022-08-19 03:41:13 -07:00
Package.zig flatten lib/std/special and improve "pkg inside another" logic 2022-05-06 22:41:00 -07:00
print_air.zig stage2: Add .save_err_return_trace_index AIR op 2022-10-21 10:44:20 -07:00
print_env.zig stage2: fix compile error merge conflict 2022-09-14 16:41:53 -07:00
print_targets.zig glibc: fix race condition when building stubs 2022-10-29 12:15:47 -07:00
print_zir.zig stage2: Keep error return traces alive when storing to const 2022-10-21 12:40:29 -07:00
RangeSet.zig std.math.big.int: breaking API changes to prevent UAF 2022-06-29 22:06:27 -04:00
register_manager.zig std.fmt: require specifier for unwrapping ?T and E!T 2022-07-26 11:25:49 -07:00
Sema.zig Merge pull request #13221 from topolarity/packed-mem 2022-10-28 21:15:16 -04:00
stage1.zig Windows: Fix stage1.zig's main failing to receive non-ASCII args 2022-10-12 05:21:48 -04:00
target.zig darwin: remove 10.15.7 as available libc from src/target.zig 2022-10-26 08:53:33 +02:00
test.zig Fix #12091: Error message with TERM=dumb is missing info 2022-10-20 13:57:57 +03:00
ThreadPool.zig Compilation: multi-thread compiler-rt 2022-06-17 16:38:59 -07:00
tracy.zig fix(text): hyphenate "comptime" adjectives 2022-10-05 21:19:30 +02:00
translate_c.zig translate-c: Better support for division in macros 2022-10-28 17:59:32 -04:00
type.zig Merge pull request #13288 from Vexu/opt-slice 2022-10-27 22:09:17 -04:00
TypedValue.zig Sema: use runtime_value instead of creating allocs 2022-10-27 21:08:25 -04:00
value.zig Merge pull request #13221 from topolarity/packed-mem 2022-10-28 21:15:16 -04:00
WaitGroup.zig Compilation: multi-thread compiler-rt 2022-06-17 16:38:59 -07:00
wasi_libc.zig allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00:00
windows_com.hpp windows_com: add missing __CRT_UUID_DECL() for IEnumSetupInstances 2022-07-09 14:04:38 -07:00
windows_sdk.cpp finalize windows_sdk paths based on snickler suggestions 2021-09-07 21:49:08 -06:00
windows_sdk.h fix regressed stage2 test harness 2020-09-21 21:14:01 -07:00
windows_sdk.zig stage2: update for new usingnamespace semantics 2021-09-01 17:54:07 -07:00
zig_clang.cpp translate-c: packed struct implies align(1) on every field 2022-10-01 15:22:10 -07:00
zig_clang.h translate-c: packed struct implies align(1) on every field 2022-10-01 15:22:10 -07:00
zig_clang_cc1_main.cpp update to LLVM 15 2022-07-28 11:53:25 -07:00
zig_clang_cc1as_main.cpp update to LLVM 15 2022-07-28 11:53:25 -07:00
zig_clang_driver.cpp update to LLVM 15 2022-07-28 11:53:25 -07:00
zig_llvm-ar.cpp update to LLVM 15 2022-07-28 11:53:25 -07:00
zig_llvm.cpp stage2: improve addrspace handling 2022-10-12 20:34:42 +02:00
zig_llvm.h stage2: improve addrspace handling 2022-10-12 20:34:42 +02:00
Zir.zig stage2: Keep error return traces alive when storing to const 2022-10-21 12:40:29 -07:00