Josh Wolfe
8de26d5382
add tests for new help stuff
2025-08-30 23:46:10 -04:00
Josh Wolfe
473c1d6fa5
support extra help decoration
2025-08-30 22:36:30 -04:00
Josh Wolfe
96f353fc22
help for positional
2025-08-30 22:36:30 -04:00
Josh Wolfe
5278e4dcb8
fix tests
2025-08-30 22:36:30 -04:00
Josh Wolfe
bc05dc4c7d
typo
2025-08-30 22:36:30 -04:00
Josh Wolfe
9df8a48667
nicer usage
2025-08-30 22:36:30 -04:00
Josh Wolfe
f2753f5910
change positional to a struct
2025-08-30 22:36:30 -04:00
Josh Wolfe
c6f3e4bd5a
use correct error type
2025-08-30 22:36:30 -04:00
Josh Wolfe
f27e5649a5
exit(0) on --help
2025-08-30 22:36:30 -04:00
Josh Wolfe
7b386cc93f
add options.exit_on_error
2025-08-30 22:36:30 -04:00
Josh Wolfe
8cb3eb3a56
add more test params i guess
2025-08-30 22:36:30 -04:00
Josh Wolfe
622264b02b
[std] add minimal CLI parser std.cli
2025-08-30 22:36:30 -04:00
Brandon Mercer
7fdd60df1c
Populate MSG struct for OpenBSD ( #25076 )
...
* update the MSG struct with the correct values for openbsd
* add comment with link to sys/sys/socket.h
---------
Co-authored-by: Brandon Mercer <bmercer@eutonian.com>
2025-08-30 22:04:32 +00:00
Andrew Kelley
b7104231af
Merge pull request #25077 from ziglang/GenericReader
...
std.Io: delete GenericReader, AnyReader, FixedBufferStream; and related API breakage
2025-08-30 12:43:52 -07:00
Alex Rønne Petersen
151314346d
Merge pull request #25055 from ziglang/llvm21
...
LLVM 21
2025-08-30 21:00:53 +02:00
Andrew Kelley
e2fdaea0b3
Revert "std.Io.Reader: work around llvm backend bug"
...
This reverts commit 530cc2c1111699d9d02ad9ebef94efa6b99f5205.
The compiler bug has been fixed.
2025-08-30 06:04:25 -07:00
Alex Rønne Petersen
66b43234bb
std: disable sha3-512 single test on RISC-V with V support
...
https://github.com/ziglang/zig/issues/25083
2025-08-30 13:27:25 +02:00
Andrew Kelley
07da9567e6
compiler: fix macos build
2025-08-30 00:48:50 -07:00
Andrew Kelley
fadd268a60
upgrade more old API uses
2025-08-30 00:48:50 -07:00
Andrew Kelley
9a0970a12b
rework std.Io.Writer.Allocating to support runtime-known alignment
...
Also, breaking API changes to:
* std.fs.Dir.readFileAlloc
* std.fs.Dir.readFileAllocOptions
2025-08-30 00:48:50 -07:00
Alex Rønne Petersen
f6879c35af
std.posix.test: fix mmap() test to use actual page size instead of 4096
2025-08-30 06:36:41 +02:00
Alex Rønne Petersen
59ee4e8e54
std.hash.xxhash: disable xxhash3 test on all mips64 targets
...
See also dd1de18f9629904b5d97d5791a47244ac63385da.
https://github.com/ziglang/zig/issues/23807
2025-08-30 06:36:41 +02:00
Alex Rønne Petersen
af78c55676
std: skip some failing tests on hexagon
2025-08-30 06:36:41 +02:00
Alex Rønne Petersen
367be3777c
std.Thread: make unreachable errors in sleep() clearer
2025-08-30 06:36:41 +02:00
Alex Rønne Petersen
5b80900a5d
std.zig.system: update aarch64 and powerpc cpu detection for LLVM 21
2025-08-30 06:36:41 +02:00
Alex Rønne Petersen
0b9f5e2549
std.Target: fix alignment for int/long types on m68k
2025-08-30 06:36:41 +02:00
Alex Rønne Petersen
fdd32a2257
std.Target: add managarm OS tag
2025-08-30 06:36:41 +02:00
Alex Rønne Petersen
464eef390b
std.Target: make ultrasparc3 the baseline for sparc64-solaris
...
https://github.com/llvm/llvm-project/pull/149990
2025-08-30 06:36:41 +02:00
Alex Rønne Petersen
978555eea4
std.Target.x86: purge avx10.n-256, rename avx10.n_512 to avx10.n, require evex512 for avx512f
...
Intel has abandoned AVX10.N/128,256; AVX10.N is now always 512-bit.
2025-08-30 06:36:41 +02:00
Alex Rønne Petersen
2c0cc81e74
std.Target: bump feature bit count from 288 to 317
...
/lib/std/debug.zig:559:14: error: reached unreachable code
if (!ok) unreachable; // assertion failure
^~~~~~~~~~~
/lib/std/Target/riscv.zig:335:21: note: called at comptime here
std.debug.assert(len <= CpuFeature.Set.needed_bit_count);
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-08-30 06:36:41 +02:00
Alex Rønne Petersen
587eddda28
std.Target: update CPU features to LLVM 21
2025-08-30 06:36:41 +02:00
Andrew Kelley
79f267f6b9
std.Io: delete GenericReader
...
and delete deprecated alias std.io
2025-08-29 17:14:26 -07:00
Andrew Kelley
558bea2a76
std.Io: delete CountingReader
2025-08-29 11:11:59 -07:00
Andrew Kelley
43fbc37a49
std.debug.Pdb: migrate more towards new Reader API
...
There was some bug in this branch, and rather than diagnosing it, I
fully finished porting over to new Reader API. Did it fix the bug?
2025-08-28 22:41:06 -07:00
Andrew Kelley
7da9e4b35e
std.tz: fix redundant endian handling
...
I didn't notice the check+swap before.
2025-08-28 18:30:57 -07:00
Andrew Kelley
530cc2c111
std.Io.Reader: work around llvm backend bug
...
tracked by #25067 and I already have a fix cooking in another branch
2025-08-28 18:30:57 -07:00
Andrew Kelley
8023f3dceb
fix not discarding delimiter
...
perhaps these APIs have the defaults backwards, eh?
2025-08-28 18:30:57 -07:00
Andrew Kelley
f7884961c2
update more to avoid GenericWriter
2025-08-28 18:30:57 -07:00
Andrew Kelley
ea3471288a
update GenericWriter usage found by test-cases
2025-08-28 18:30:57 -07:00
Andrew Kelley
888f00e856
std.crypto.ml_kem: update to not use GenericWriter
2025-08-28 18:30:57 -07:00
Andrew Kelley
e9a271cba3
std.tz: update to new Reader API
2025-08-28 18:30:57 -07:00
Andrew Kelley
9860dd475a
std: delete most remaining uses of GenericWriter
2025-08-28 18:30:57 -07:00
Andrew Kelley
cc931660eb
link.MachO: update to not use GenericWriter
2025-08-28 18:30:57 -07:00
Andrew Kelley
2dc6ddd7e8
std.Io.Writer: add toArrayList/fromArrayList
2025-08-28 18:30:57 -07:00
Andrew Kelley
57dbc9e74a
std.Io: delete GenericWriter
2025-08-28 18:30:57 -07:00
Ryan Liptak
224fca7e0e
process.totalSystemMemory: Avoid overflow on Linux when totalram is a 32-bit usize
...
Fixes #25038
2025-08-28 17:05:39 +02:00
Ryan Liptak
2b73c28cec
Reader.appendRemaining: Take ownership of the full allocated slice
...
Before this commit, calling appendRemaining with an ArrayList where list.items.len != list.capacity could result in illegal behavior if the Writer.Allocating resized the list during the appendRemaining call.
Fixes #25057
2025-08-28 07:56:50 -07:00
David Rubin
73a0b5441b
AstGen: forward result type through unary float builtins
...
Uses a new `float_op_result_ty` ZIR instruction tag.
2025-08-28 15:46:12 +01:00
mlugg
a31950aa57
std.debug: remove @frameAddress() "UAF"
...
We can't call `@frameAddress()` and then immediately `return`! That
invalidates the frame. This *usually* isn't a problem, because the stack
walk `next` call will *probably* have a stack frame and it will
*probably* be at the exact same address, but neither of those is a
guarantee. On powerpc, presumably some unfortunate inlining was going
on, so this frame was indeed invalidated when we started walking frames.
We need to explicitly pass `@frameAddress` into any function which will
return before we actually walk the stack. Pretty simple patch.
Resolves : #24970
2025-08-28 10:56:11 +01:00
tokyo4j
151c7dc74b
std.os.uefi: fix type error at MemoryType.format()
2025-08-28 07:50:38 +01:00