diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-12-30 17:05:17 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-01-02 13:16:17 -0700 |
| commit | d6c5602d4665ba4e9e7c0b7f42bd00b2489d420c (patch) | |
| tree | c234262f9c98e834ed470fd5fddf18c04cad94d2 /src/Module.zig | |
| parent | e36718165cdc29b777392a3a343d92ccd1c6acf3 (diff) | |
| download | zig-d6c5602d4665ba4e9e7c0b7f42bd00b2489d420c.tar.gz zig-d6c5602d4665ba4e9e7c0b7f42bd00b2489d420c.zip | |
stage2: fix CLI not populating output binary files
This fixes a regression in this branch that can be reproduced with the
following steps:
1. `zig build-exe hello.zig`
2. delete the "hello" binary
3. `zig build-exe hello.zig`
4. observe that the "hello" binary is missing
This happened because it was a cache hit, but nothing got copied to the
output directory.
This commit sets CacheMode to incremental - even for stage1 - when the
CLI requests `disable_lld_caching` (this option should be renamed),
resulting in the main Compilation to be repeated (uncached) for stage1,
populating the binary into the cwd as expected.
For stage2 the result is even better: the incremental compilation system
will look for build artifacts to incrementally compile, and start fresh
if not found.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions
