diff options
| author | Matthew Lugg <mlugg@mlugg.co.uk> | 2025-11-15 09:45:22 +0000 |
|---|---|---|
| committer | Matthew Lugg <mlugg@mlugg.co.uk> | 2025-11-15 09:49:02 +0000 |
| commit | cd8fdd252d9ffd5bfb772cef49e4c79041872d38 (patch) | |
| tree | 35e9647d4129edf2d4e5caf0b8233727d58765ab /src/codegen/c.zig | |
| parent | bc78d8efdb90c77670c30474071942f093a2427f (diff) | |
| download | zig-cd8fdd252d9ffd5bfb772cef49e4c79041872d38.tar.gz zig-cd8fdd252d9ffd5bfb772cef49e4c79041872d38.zip | |
build.zig: use `Step.UpdateSourceFiles` for `zig1.wasm`
We were already using this for `stage1/zig.h`, but `stage1/zig1.wasm`
was being modified directly by the `wasm-opt` command. That's a bad idea
because it forces the build system to assume that `wasm-opt` has side
effects, so it is re-run every time you run `zig build update-zig1`,
i.e. it does not interact with the cache system correctly. It is much
better to create non-side-effecting `Run` steps (using `addOutput*Arg`)
where possible so that the build system has a more correct understanding
of the step graph.
Diffstat (limited to 'src/codegen/c.zig')
0 files changed, 0 insertions, 0 deletions
