diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-07-14 19:48:08 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-07-14 19:51:16 -0700 |
| commit | abf895595189eb45df8c97f4029c58976815b450 (patch) | |
| tree | 5ea03d7fc0485f6dc86eb34d185992f69cf8a190 /src/Compilation.zig | |
| parent | d404d8a3637bc30dffc736e5fa1a68b8af0e19cb (diff) | |
| download | zig-abf895595189eb45df8c97f4029c58976815b450.tar.gz zig-abf895595189eb45df8c97f4029c58976815b450.zip | |
make zig compiler processes live across rebuilds
Changes the `make` function signature to take an options struct, which
additionally includes `watch: bool`. I intentionally am not exposing
this information to configure phase logic.
Also adds global zig cache to the compiler cache prefixes.
Closes #20600
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index a785351df5..83a7501ffa 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -1363,6 +1363,7 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil cache.addPrefix(.{ .path = null, .handle = std.fs.cwd() }); cache.addPrefix(options.zig_lib_directory); cache.addPrefix(options.local_cache_directory); + cache.addPrefix(options.global_cache_directory); errdefer cache.manifest_dir.close(); // This is shared hasher state common to zig source and all C source files. @@ -2358,7 +2359,7 @@ pub fn update(comp: *Compilation, main_progress_node: std.Progress.Node) !void { } } -fn appendFileSystemInput( +pub fn appendFileSystemInput( comp: *Compilation, file_system_inputs: *std.ArrayListUnmanaged(u8), root: Cache.Path, |
