aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorMatthew Lugg <mlugg@mlugg.co.uk>2024-08-18 12:56:04 +0100
committerGitHub <noreply@github.com>2024-08-18 12:56:04 +0100
commit4929cf23cedef2ca8a8cfb2f9379d136681a6f37 (patch)
tree04156c9a729b5029a3682ff25fef088156addfdd /src/main.zig
parent2b05e85107dd1c637ab40f8b145b232d18e8d6c6 (diff)
parentf0374fe3f04925a6e686077c2ffcb51b8eafc926 (diff)
downloadzig-4929cf23cedef2ca8a8cfb2f9379d136681a6f37.tar.gz
zig-4929cf23cedef2ca8a8cfb2f9379d136681a6f37.zip
Merge pull request #21063 from mlugg/incremental
Incremental compilation progress
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig
index 62c721f157..3429500bf8 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -3257,9 +3257,12 @@ fn buildOutputType(
else => false,
};
+ const incremental = opt_incremental orelse false;
+
const disable_lld_caching = !output_to_cache;
const cache_mode: Compilation.CacheMode = b: {
+ if (incremental) break :b .incremental;
if (disable_lld_caching) break :b .incremental;
if (!create_module.resolved_options.have_zcu) break :b .whole;
@@ -3272,8 +3275,6 @@ fn buildOutputType(
break :b .incremental;
};
- const incremental = opt_incremental orelse false;
-
process.raiseFileDescriptorLimit();
var file_system_inputs: std.ArrayListUnmanaged(u8) = .{};