0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib
Robin Voetter 43f73af359
fix various issues related to Path handling in the compiler and std
A compilation build step for which the binary is not required could not
be compiled previously. There were 2 issues that caused this:

- The compiler communicated only the results of the emitted binary and
  did not properly communicate the result if the binary was not emitted.

  This is fixed by communicating the final hash of the artifact path (the
  hash of the corresponding /o/<hash> directory) and communicating this
  instead of the entire path. This changes the zig build --listen protocol
  to communicate hashes instead of paths, and emit_bin_path is accordingly
  renamed to emit_digest.

- There was an error related to the default llvm object path when
  CacheUse.Whole was selected. I'm not really sure why this didn't manifest
  when the binary is also emitted.

  This was fixed by improving the path handling related to flush() and
  emitLlvmObject().

In general, this commit also improves some of the path handling throughout
the compiler and standard library.
History 2024-08-19 19:09:11 +02:00
..
compiler fix various issues related to Path handling in the compiler and std 2024-08-19 19:09:11 +02:00
compiler_rt compiler-rt: Fix the leoncasa CPU feature check for sparc32. 2024-08-12 14:36:21 -07:00
docs wasm zig source rendering: fix annotation location off-by-one 2024-08-07 00:48:32 -07:00
fuzzer more optimized and correct management of 8-bit PC counters 2024-08-08 21:46:36 -07:00
include update C language headers to LLVM 18 2024-05-08 19:37:28 -07:00
init update comment in init template 2024-08-18 14:23:49 -07:00
libc loongarch: add glibc start.S to make zig-bootstrap work for loongarch64-linux-gnu (#21015) 2024-08-14 21:32:03 +00:00
libcxx update libcxx and libcxxabi to llvm 18.1.6 2024-05-20 16:12:36 -04:00
libcxxabi update libcxx and libcxxabi to llvm 18.1.6 2024-05-20 16:12:36 -04:00
libunwind libunwind: update to LLVM 18 2024-05-08 19:37:29 -07:00
std fix various issues related to Path handling in the compiler and std 2024-08-19 19:09:11 +02:00
tsan tsan: update rtl files to LLVM 17.0.6 2024-01-10 01:00:37 -07:00
c.zig std.os.linux: Move clone() here and stop exporting it. 2024-08-07 01:19:51 -07:00
compiler_rt.zig stage2-wasm: bit_reverse 2024-06-16 11:53:33 +02:00
fuzzer.zig more optimized and correct management of 8-bit PC counters 2024-08-08 21:46:36 -07:00
zig.h zig.h: fixup pointer atomic load definitions 2024-07-26 10:42:10 -04:00