Andrew Kelley
3ad9a6a604
incr-check: more general --debug-log CLI
2025-12-26 19:58:56 -08:00
Andrew Kelley
a7d2cb7045
test-incremental: ignore .swp files
2025-12-26 19:58:56 -08:00
Andrew Kelley
66da6773eb
build: make test-incremental respect -Dtest-filter
2025-12-26 19:58:56 -08:00
Andrew Kelley
b243e8f8cc
std: integrate DebugAllocator with terminal mode
...
by adding a new std.Option for log.terminalMode
this is an alternative to the approach that was deleted in
aa57793b68
2025-12-26 19:58:56 -08:00
Andrew Kelley
a72c411fdb
disable self-hosted aarch64 tests
...
These can be re-enabled when the assertion failures in the backend are
fixed, which does not need to block this branch.
2025-12-26 19:58:56 -08:00
Andrew Kelley
315bc10a0c
std.Io.Threaded: dirRealPathFilePosix use libc realpath sometimes
...
When linking libc, and the directory is the cwd.
This avoids bugs on FreeBSD.
2025-12-24 12:57:18 -08:00
Andrew Kelley
02e560d9ef
build.zig: adjust max_rss for unit tests
...
this isn't meant to be a precisely measured thing that is different per
operating system. it's meant to have some room for growth but not too
much.
2025-12-24 11:37:51 -08:00
Andrew Kelley
6f4e93f0dd
std.Io.Threaded: wasi does not support processExecutablePath
2025-12-24 00:55:27 -08:00
Andrew Kelley
ace08ba642
std.Io.Threaded: prevent 0-byte file writes
...
these cause EINVAL on darwin and are generally a wasted syscall.
and remove a bogus error from File.Writer.Error.
2025-12-23 23:46:43 -08:00
Andrew Kelley
a901e92413
std.Io.Threaded: implement process executable path on darwin
2025-12-23 23:31:47 -08:00
Andrew Kelley
2708a3c1ac
fix the guess number game example
2025-12-23 22:40:17 -08:00
Andrew Kelley
c9a609a61a
test-cases: disable self-hosted aarch64 backend coverage
2025-12-23 22:15:12 -08:00
Andrew Kelley
6dbc95fb1f
update test cases
2025-12-23 22:15:12 -08:00
Andrew Kelley
fa79d34674
std: add changing cur dir back
...
There's a good argument to not have this in the std lib but it's more
work to remove it than to leave it in, and this branch is already
20,000+ lines changed.
2025-12-23 22:15:12 -08:00
Andrew Kelley
98e9716c08
std: fix compilation on NetBSD
2025-12-23 22:15:12 -08:00
Andrew Kelley
7788fd6233
update test API usage
2025-12-23 22:15:12 -08:00
Andrew Kelley
b45984ec80
test-incremental: respect the wine, qemu, etc build flags
2025-12-23 22:15:12 -08:00
Andrew Kelley
669dae140c
test-standalone: fix most compilation errors
2025-12-23 22:15:12 -08:00
Andrew Kelley
0870f17501
fix aro and resinator compilation errors
2025-12-23 22:15:12 -08:00
Andrew Kelley
c05e2720a1
tools: fix compilation errors
2025-12-23 22:15:12 -08:00
Andrew Kelley
7a09d579b5
CLI: lock stderr while running jit cmd
2025-12-23 22:15:12 -08:00
Andrew Kelley
60e90adbcf
compiler: add missing end() for root std.Progress nodes
...
otherwise the progress task prevents main() from returning
2025-12-23 22:15:12 -08:00
Andrew Kelley
bd6acbf7da
std.Io: minor cleanups to futex and event
...
mainly avoid an unnecessary `@ptrCast`
2025-12-23 22:15:12 -08:00
Andrew Kelley
6ece10f63d
update test-link to new std.Io API
2025-12-23 22:15:12 -08:00
Andrew Kelley
e9da2783ce
std.Io.Threaded: add a workaround for self-hosted wasm backend
...
Tracked by #30575
2025-12-23 22:15:12 -08:00
Andrew Kelley
691afee786
langref: fix build failure
2025-12-23 22:15:12 -08:00
Andrew Kelley
33e302d67a
update remaining calls to std.Io.Threaded.init
2025-12-23 22:15:12 -08:00
Andrew Kelley
187d0a692d
compiler: handle cancelation from finishPrelinkQueue
2025-12-23 22:15:12 -08:00
Andrew Kelley
7c1236e267
std: different way of doing some options
...
to avoid dependency loops
2025-12-23 22:15:12 -08:00
Andrew Kelley
9aee45be97
fix "zig std" compilation errors
2025-12-23 22:15:12 -08:00
Andrew Kelley
9158d3b281
std: remove ability to override Io.File.Permissions
...
This is causing another compiler dependency loop. I'll tackle these
overrides separately.
2025-12-23 22:15:12 -08:00
Andrew Kelley
c98157a3c9
std.Io.Threaded: implement environment variable scanning
2025-12-23 22:15:12 -08:00
Andrew Kelley
0992f1204e
std.debug: delete nosuspend blocks
...
now that the application can choose an Io implementation these might
actually suspend.
2025-12-23 22:15:12 -08:00
Andrew Kelley
78c4fcfcd8
std.debug.lockStderr: cancel protection rather than recancel
...
because we need to return the value
2025-12-23 22:15:12 -08:00
Andrew Kelley
3c2f5adf41
std: integrate Io.Threaded with environment variables
...
* std.option allows overriding the debug Io instance
* if the default is used, start code initializes environ and argv0
also fix some places that needed recancel(), thanks mlugg!
See #30562
2025-12-23 22:15:12 -08:00
Andrew Kelley
86e9e32cf0
std.Io: fix missing try in waitTimeout
2025-12-23 22:15:12 -08:00
Andrew Kelley
a29d79313a
std.Io.Threaded: accept argv and environ on init
...
This is needed unfortunately for OpenBSD and Haiku for process
executable path.
I made it so that you can omit the options usually, but you get a
compile error if you omit the options on those targets.
2025-12-23 22:15:12 -08:00
Michael Dusan
60481b8223
std.Io: trim terminating NUL from exe path on BSDs
2025-12-23 22:15:12 -08:00
Andrew Kelley
1132e329d3
std.Io.Threaded: fix up processExecutablePath OpenBSD
...
* policy is to always handle EINTR from all syscalls
* assert the result of realpath
* don't ignore errors from realpath
* hard-code path separators for code simplicity
2025-12-23 22:15:11 -08:00
Michael Dusan
7014976d3d
openbsd: avoid error.OperationUnsupported
...
- realPathPosix does not support OpenBSD
- change processExecutablePath OpenBSD section to use std.c.realpath
2025-12-23 22:15:11 -08:00
Michael Dusan
8fdfeb624d
openbsd: fix OS version detection
...
- do not include resulting nullz from sysctl MIB fetch
- fixes bug: "7.8<NULL>" is a std.Target.Query.parseVersion error
2025-12-23 22:15:11 -08:00
Michael Dusan
90bc371f56
openbsd: use Io.Dir.realPathFileAbsolute
2025-12-23 22:15:11 -08:00
Michael Dusan
486ed907f7
dragonfly: define std.c.nlink_t
2025-12-23 22:15:11 -08:00
Andrew Kelley
70e19ea353
update more "realpath" callsites
2025-12-23 22:15:11 -08:00
Ryan Liptak
51a6f3a525
Update a few more callsites for std.Io changes
2025-12-23 22:15:11 -08:00
Ryan Liptak
8968d75fb1
fileStat needs read permissions on Windows
2025-12-23 22:15:11 -08:00
Ryan Liptak
bb788cd392
dirOpenFileWtf16: Disallow opening directories when requesting write permissions
...
This matches the behavior of POSIX
2025-12-23 22:15:11 -08:00
Ryan Liptak
e442a0ecc2
Dir.readFile/readFileAlloc: take advantage of .allow_directory = false on Windows
...
Since we know the read will fail for directories, we can take advantage
of Windows being able to fail with IsDir during open to avoid needing to
wait until the read to find out about the directory-ness of the file.
2025-12-23 22:15:11 -08:00
Ryan Liptak
ad08117e9d
Fix sizing of buffer/reservation size for dirReadWindows
2025-12-23 22:15:11 -08:00
Andrew Kelley
fd0c324cb0
std.debug: fix simple_panic
2025-12-23 22:15:11 -08:00