0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std
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
..
Build fix various issues related to Path handling in the compiler and std 2024-08-19 19:09:11 +02:00
c std.Target: Remove kfreebsd OS specifier. 2024-07-20 05:08:14 +02:00
compress std: fix typos (#20560) 2024-07-09 14:25:42 -07:00
crypto std.crypto: better names for everything in utils 2024-08-09 19:47:06 -07:00
debug std.debug.Coverage.resolveAddressesDwarf: assert sorted 2024-08-13 19:29:55 -07:00
dwarf Dwarf: fix and test allowzero pointers 2024-08-17 05:57:45 -04:00
fmt std.fmt.formatFloat: skip f80 round-trip tests on x86_64 windows 2024-07-14 11:19:34 +12:00
fs add std.fs.Dir.Handle 2024-08-01 13:47:23 -07:00
hash std: fix typos (#20560) 2024-07-09 14:25:42 -07:00
heap riscv: workarounds for riscv threading 2024-07-26 14:53:50 -07:00
http add std.http.WebSocket 2024-08-07 00:48:32 -07:00
io implement std.testing.fuzzInput 2024-07-25 18:52:20 -07:00
json fix partial strings getting dropped when multi-byte codepoints span input buffers 2024-08-07 06:29:34 -04:00
math Dwarf: rework self-hosted debug info from scratch 2024-08-16 15:22:55 -04:00
mem mem: explicit dupe and dupeZ error on Allocator 2023-09-07 21:56:57 +03:00
meta std: promote tests to doctests 2024-03-21 14:11:46 -07:00
net std.net, std.http: simplify 2024-02-23 02:37:11 -07:00
os loongarch: fix asm to set thread pointer (#21086) 2024-08-15 15:40:44 -07:00
posix POSIX link() syscall only takes two arguments (no flags) 2024-08-07 13:05:42 -07:00
process Allow setting PGID in std.process.Child.spawn 2024-07-22 11:50:00 +09:00
Random add std.testing.random_seed 2024-07-23 11:43:12 -07:00
sort std: fix typos (#20560) 2024-07-09 14:25:42 -07:00
tar std.tar: add writer (#19603) 2024-08-15 22:05:53 -07:00
Target std.Target: Rename feature_set_fns to FeatureSetFns 2024-08-12 00:34:59 +01:00
testing std: enable FailingAllocator to fail on resize 2023-09-06 19:06:32 +03:00
Thread std.c reorganization 2024-07-19 00:30:32 -07:00
time std.time.epoch: Fix comments referring to epoch as 1970-10-01 2024-08-15 17:54:27 -07:00
tz Support legacy TZ format, expose header struct to a potential writer 2022-01-01 12:47:08 +00:00
unicode all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
valgrind std: fix typos (#20560) 2024-07-09 14:25:42 -07:00
zig fix various issues related to Path handling in the compiler and std 2024-08-19 19:09:11 +02:00
zip std: Convert deprecated aliases to compile errors and fix usages 2024-06-13 10:18:59 -04:00
array_hash_map.zig docs: ArrayHashMap: warn against the shrink footgun 2024-07-26 15:24:25 -07:00
array_list.zig Dwarf: rework self-hosted debug info from scratch 2024-08-16 15:22:55 -04:00
ascii.zig Rename isASCII to isAscii 2024-07-02 16:31:15 +02:00
atomic.zig Merge pull request #20870 from alexrp/target-cleanup-3 2024-08-01 01:32:32 -07:00
base64.zig improve documentation in std 2024-03-10 18:13:30 -07:00
bit_set.zig std: promote tests to doctests 2024-03-21 14:11:46 -07:00
BitStack.zig std: fix typos (#20560) 2024-07-09 14:25:42 -07:00
bounded_array.zig std.BoundedArray: add clear() 2024-08-17 18:50:10 -04:00
buf_map.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
buf_set.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
Build.zig fix various issues related to Path handling in the compiler and std 2024-08-19 19:09:11 +02:00
builtin.zig language: add module name field to @src 2024-08-08 07:47:14 -07:00
c.zig std.Target: Remove minix OS tag. 2024-08-12 08:59:49 +02:00
coff.zig std.coff: Capitalize MachineType.{Unknown,Thumb} for consistency. 2024-08-15 10:55:46 +02:00
compress.zig improve documentation in std 2024-03-10 18:13:30 -07:00
crypto.zig std.crypto: better names for everything in utils 2024-08-09 19:47:06 -07:00
debug.zig std: disable failing debug info test for self-hosted 2024-08-16 16:23:53 -04:00
dwarf.zig Dwarf: rework self-hosted debug info from scratch 2024-08-16 15:22:55 -04:00
dynamic_library.zig std.c reorganization 2024-07-19 00:30:32 -07:00
elf.zig std.elf.EM: Add missing MICROBLAZE value. 2024-07-30 01:29:38 +02:00
enums.zig EnumMap: fix init 2024-05-26 16:13:54 -04:00
fifo.zig std: promote tests to doctests 2024-03-21 14:11:46 -07:00
fmt.zig fix std.fmt.hex 2024-07-20 01:06:29 -07:00
fs.zig std.fs.Dir: Refactor atomicSymLink from std.fs 2024-07-28 20:08:52 -07:00
gpu.zig std: add gpu namespace 2024-02-05 11:55:14 +03:30
hash.zig XXH3 Implementation for Zig STD (#17530) 2023-10-17 13:55:01 -05:00
hash_map.zig std.hash_map: adding a rehash() method (#19923) 2024-08-08 11:59:22 -07:00
heap.zig std.c reorganization 2024-07-19 00:30:32 -07:00
http.zig add std.http.WebSocket 2024-08-07 00:48:32 -07:00
io.zig Dwarf: rework self-hosted debug info from scratch 2024-08-16 15:22:55 -04:00
json.zig Delete compile errors for deprecated decls 2024-05-03 13:27:30 -07:00
leb128.zig Dwarf: rework self-hosted debug info from scratch 2024-08-16 15:22:55 -04:00
linked_list.zig Revert "std.SinglyLinkedList: add sort function" 2023-11-24 22:33:50 -07:00
log.zig update the codebase for the new std.Progress API 2024-05-27 20:56:48 -07:00
macho.zig remove hard tabs from source code 2024-07-31 16:57:42 -07:00
math.zig langref: clarify functionality of the round builtin (#19503) 2024-08-14 10:29:45 -07:00
mem.zig Dwarf: rework self-hosted debug info from scratch 2024-08-16 15:22:55 -04:00
meta.zig chore: correct non-standard comments. 2024-07-28 21:34:14 -07:00
multi_array_list.zig InternPool: implement and use thread-safe list for strings 2024-07-07 22:59:52 -04:00
net.zig std.c reorganization 2024-07-19 00:30:32 -07:00
once.zig std: improve std.once tests 2024-04-15 15:24:30 -07:00
os.zig std.c reorganization 2024-07-19 00:30:32 -07:00
packed_int_array.zig chore: correct non-standard comments. 2024-07-28 21:34:14 -07:00
pdb.zig std.debug: rename Info to SelfInfo 2024-08-01 22:11:35 -07:00
posix.zig std.posix: read on timerfd can return error.Canceled 2024-08-08 01:12:26 -07:00
priority_dequeue.zig add std.testing.random_seed 2024-07-23 11:43:12 -07:00
priority_queue.zig std: fix typos (#20560) 2024-07-09 14:25:42 -07:00
process.zig move std.zig.fatal to std.process.fatal 2024-07-20 01:06:28 -07:00
Progress.zig std.posix: Consider invalid signal numbers to sigaction() to be programmer error. 2024-07-21 22:38:09 +02:00
Random.zig std: Convert deprecated aliases to compile errors and fix usages 2024-06-13 10:18:59 -04:00
RingBuffer.zig std.RingBuffer: use sliceAt/sliceFirst in read*AssumeLength 2024-03-10 18:17:23 +11:00
segmented_list.zig Remove redundant test name prefixes now that test names are fully qualified 2024-02-26 15:18:31 -08:00
SemanticVersion.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
simd.zig std.simd: Fix an isARM() check to use isArmOrThumb() instead. 2024-08-01 20:58:08 +02:00
sort.zig std.sort: Remove key argument from binary-search-like functions (#20927) 2024-08-04 22:02:15 +00:00
start.zig start: Avoid concatenating strings for inline asm. 2024-08-15 10:56:32 +02:00
static_string_map.zig std.static_string_map: Cast length of input for runtime initialization 2024-06-20 23:22:39 +00:00
std.zig std: Convert deprecated aliases to compile errors and fix usages 2024-06-13 10:18:59 -04:00
tar.zig std.tar: add writer (#19603) 2024-08-15 22:05:53 -07:00
Target.zig std.Target: Return the correct value for 32-bit sparc v9 in toElfMachine(). 2024-08-15 10:55:46 +02:00
testing.zig implement std.testing.fuzzInput 2024-07-25 18:52:20 -07:00
Thread.zig std.Thread: Merge riscv32/riscv64 assembly in freeAndExit(). 2024-08-13 23:53:57 -07:00
time.zig std.c reorganization 2024-07-19 00:30:32 -07:00
treap.zig Condense and extend std.Treap's traversal functionalities. (#20002) 2024-07-28 19:47:55 -07:00
tz.zig std.builtin.Endian: make the tags lower case 2023-10-31 21:37:35 -04:00
unicode.zig std.zig.tokenizer: simplify 2024-07-31 16:57:42 -07:00
Uri.zig std.http.Client: always omit port when it matches default 2024-04-12 22:37:07 -07:00
valgrind.zig Rename nonSIMDCall* to nonSimdCall* 2024-07-03 19:00:17 +01:00
wasm.zig Remove redundant test name prefixes now that test names are fully qualified 2024-02-26 15:18:31 -08:00
zig.zig std.Target: Add goff and xcoff to ObjectFormat. 2024-08-11 20:21:28 -07:00
zip.zig std.zip: Fix typo in doc comments 2024-06-17 16:12:19 -04:00