aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-10-16 12:46:39 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-10-18 16:52:43 -0700
commitcaddbbc315e834241c6ae7e22434b574c589e5fc (patch)
treefe412c607e0e4a21a8f43da130335ace3c4fe304 /src/Module.zig
parent10132126972604c4636b148df27ab7fe9e50136b (diff)
downloadzig-caddbbc315e834241c6ae7e22434b574c589e5fc.tar.gz
zig-caddbbc315e834241c6ae7e22434b574c589e5fc.zip
build: avoid compiling self-hosted twice
build.zig: add a 'compile' step to compile the self-hosted compiler without installing it. Compilation: set cache mode to whole when using the LLVM backend and --enable-cache is passed. This makes `zig build` act the same as it does with stage1. Upside is that a second invocation of `zig build` on an unmodified source tree will avoid redoing the compilation again. Downside is that it will proliferate more garbage in the project-local cache (same as stage1). This can eventually be fixed when Zig's incremental compilation is more robust; we can go back to having LLVM use CacheMode.incremental and rely on it detecting no changes and avoiding doing the flush() step.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions