Andrew Kelley
ba634c44ba
Maker.Step.Run: fix not printing failed command
...
regressed in 349053e322
I added comments to help prevent this regression in the future.
2026-05-27 13:04:19 -07:00
Alex Rønne Petersen
333724ff77
Maker.Step.Run: set WASMTIME_BACKTRACE_DETAILS=1 by default for Wasmtime
...
Similar in spirit to what we do with WINEDEBUG when using Wine, i.e. provide
more helpful defaults.
2026-05-27 07:52:49 +02:00
Andrew Kelley
d0c6ed189b
Maker: fix Target deserialization
...
more disciplined Target / Query separation even though they're both
serialized in the same struct
2026-05-27 03:04:31 +02:00
Andrew Kelley
4d56c66362
Merge pull request 'Maker: memory usage optimizations' ( #35471 ) from build-runner-process into master
...
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/35471
2026-05-27 00:48:11 +02:00
Andrew Kelley
fd63f57cd8
build system: update more usize to u64 for maxrss
...
makes the build system compile on 32 bit systems
bonus, also fix incorrectly passing advanced debug options to the maker
process which doesn't care about them
2026-05-26 09:50:48 -07:00
Andrew Kelley
349053e322
Maker: memory usage optimizations
...
- choose smp_allocator depending on optimization mode
- organize the globals
- avoid pessimistically allocating failed command string
- recover the PkgConfig memory
- recover the memory from captureChildProcess
- make Step.result_stderr gpa-owned so it doesn't leak when a step that
fails with stderr is re-run
- recover memory from evalZigTest and evalGeneric child process stdio
streams
2026-05-26 09:03:34 -07:00
Andrew Kelley
1d750d7067
Maker.Step.Run: fix leak in evalGeneric
2026-05-25 20:34:44 -07:00
Andrew Kelley
f3dd10d40f
Maker: add --debug-maker-leaks flag and fix some leaks
2026-05-25 20:14:34 -07:00
Andrew Kelley
cb1f3e0ac4
Maker.Step.Compile: leak into the global arena less
2026-05-25 19:27:16 -07:00
Andrew Kelley
1aa65d094e
Maker.Step.Run: leak into global arena less
...
There are still some uses:
- fuzzing
- generated paths (will require adjusting all step logic)
- Step.result_stderr
2026-05-25 18:54:36 -07:00
Andrew Kelley
9eb85c4e5e
build system: track TODOs outside source code
...
related to #363
2026-05-25 18:54:36 -07:00
Andrew Kelley
65c96c4035
Maker.Step.Run: add missing PATH entries for DLLs
2026-05-25 18:54:36 -07:00
Andrew Kelley
c0504a8fa8
fuzzer: get it working again
2026-05-25 18:54:36 -07:00
Andrew Kelley
0aa613d9bf
Maker.Step.Run: fix passing -L to qemu
2026-05-25 18:54:36 -07:00
Andrew Kelley
05fbeb4ea7
Maker.Step.Run: fix wrong allocator used
2026-05-25 18:54:36 -07:00
Andrew Kelley
a874e729df
zig build: remove "cc args" from Run steps
...
Not sure what I was thinking. This is silly, translate-c package simply
needs to pass this data (link_libc and target) to the CLI application,
which can then do the appropriate behavior.
2026-05-25 18:54:36 -07:00
Andrew Kelley
d1204d4104
Maker.Step.Run: implement addPathForDynLibs
2026-05-25 18:54:36 -07:00
Andrew Kelley
9709efce98
std.Build.Step.Run: introduce Arg.cc_args
...
provides a way for the build system to append -target and -isystem/-I
flags to a Run step.
needed by translate-c package to avoid doing naughty stuff in the
configure phase.
2026-05-25 18:54:35 -07:00
Andrew Kelley
5644d68f14
more colorful wip panics
2026-05-25 18:54:35 -07:00
Andrew Kelley
ddabd57743
progress towards compiling zig's build script
2026-05-25 18:54:35 -07:00
Andrew Kelley
aec708ce25
build system: remove unneeded args from configurer
...
not needed:
* zig exe path
* zig lib dir
* build root
* local cache root
* global cache root
2026-05-25 18:54:35 -07:00
Andrew Kelley
7819e4dea7
rename addCliExtras to addPassthruArgs
...
finally, a good name
2026-05-25 18:54:35 -07:00
Andrew Kelley
8f224bc3f0
rename addBuildPositionals to addCliExtras
...
they don't have to be positionals
2026-05-25 18:54:35 -07:00
Andrew Kelley
0d95b44a1c
build system: implement cli positionals
2026-05-25 18:54:35 -07:00
Andrew Kelley
fa23575767
maker: fix the has side effects logic in run step
2026-05-25 18:54:35 -07:00
Andrew Kelley
1e956fda90
maker: add the --listen and --seed args back to run
2026-05-25 18:54:34 -07:00
Andrew Kelley
0f3471eb66
maker: finish porting over run step
2026-05-25 18:54:34 -07:00
Andrew Kelley
4e3d14f590
maker: update more Run step logic
2026-05-25 18:54:34 -07:00
Andrew Kelley
c8b583885d
maker: port Run step logic up to spawnChildAndCollect
2026-05-25 18:54:34 -07:00
Andrew Kelley
378b790ee2
maker: port more of Run step over
2026-05-25 18:54:34 -07:00
Andrew Kelley
5a4b5b549b
maker: restore Step.Run logic for adding artifact arg
...
When an artifact arg is added to a Run step, if the artifact is
installed, then the installation path is added rather than the cache
artifact path. This is probably something that should change in the
future, but the goal of this branch is to generally avoid breakage other
than that caused by phase separation.
2026-05-25 18:54:34 -07:00
Andrew Kelley
a399d37886
maker: upgrade some of the run step logic
2026-05-25 18:54:34 -07:00
Andrew Kelley
959103c3fd
Maker.Step.Compile: progress towards lowering zig args
2026-05-25 18:54:34 -07:00
Andrew Kelley
6b7ce1fa22
massage Step code into compiling
2026-05-25 18:54:34 -07:00
Andrew Kelley
b3d162d6bf
build maker: rename files to match type
2026-05-25 18:54:34 -07:00