| author | |
| committer | |
| log | 431092fa612ca193cff56fd3430ac037ff70102b |
| tree | b55599988e630cc97094445728862f9b149c8d81 |
| parent | 1f43e049d0d46c14ce5d598f1b6587d2c043b82c |
4 files changed, 10 insertions(+), 2 deletions(-)
lib/compiler/Maker/Step/Compile.zig+1-1| ... | @@ -861,7 +861,7 @@ fn lowerZigArgs( | ... | @@ -861,7 +861,7 @@ fn lowerZigArgs( |
| 861 | "--error-limit", try allocPrint(arena, "{d}", .{err_limit}), | 861 | "--error-limit", try allocPrint(arena, "{d}", .{err_limit}), |
| 862 | }; | 862 | }; |
| 863 | 863 | ||
| 864 | try addFlag(gpa, zig_args, "incremental", graph.incremental); | 864 | try addFlag(gpa, zig_args, "incremental", conf_comp.flags4.incremental.toBool() orelse graph.incremental); |
| 865 | 865 | ||
| 866 | try zig_args.append(gpa, "--listen=-"); | 866 | try zig_args.append(gpa, "--listen=-"); |
| 867 | 867 |
lib/compiler/configurer.zig+1| ... | @@ -797,6 +797,7 @@ fn serialize(b: *std.Build, wc: *Configuration.Wip, writer: *Io.Writer) !void { | ... | @@ -797,6 +797,7 @@ fn serialize(b: *std.Build, wc: *Configuration.Wip, writer: *Io.Writer) !void { |
| 797 | .generated_llvm_bc = c.generated_llvm_bc != .none, | 797 | .generated_llvm_bc = c.generated_llvm_bc != .none, |
| 798 | .generated_llvm_ir = c.generated_llvm_ir != .none, | 798 | .generated_llvm_ir = c.generated_llvm_ir != .none, |
| 799 | .generated_h = c.generated_h != .none, | 799 | .generated_h = c.generated_h != .none, |
| 800 | .incremental = .init(c.incremental), | ||
| 800 | }, | 801 | }, |
| 801 | .root_module = try s.addModule(c.root_module), | 802 | .root_module = try s.addModule(c.root_module), |
| 802 | .root_name = try wc.addString(c.name), | 803 | .root_name = try wc.addString(c.name), |
lib/std/Build/Configuration.zig+2-1| ... | @@ -1016,7 +1016,8 @@ pub const Step = extern struct { | ... | @@ -1016,7 +1016,8 @@ pub const Step = extern struct { |
| 1016 | generated_llvm_bc: bool, | 1016 | generated_llvm_bc: bool, |
| 1017 | generated_llvm_ir: bool, | 1017 | generated_llvm_ir: bool, |
| 1018 | generated_h: bool, | 1018 | generated_h: bool, |
| 1019 | _: u9 = 0, | 1019 | incremental: DefaultingBool, |
| 1020 | _: u7 = 0, | ||
| 1020 | }; | 1021 | }; |
| 1021 | 1022 | ||
| 1022 | pub fn isDynamicLibrary(compile: *const Compile) bool { | 1023 | pub fn isDynamicLibrary(compile: *const Compile) bool { |
lib/std/Build/Step/Compile.zig+6| ... | @@ -234,6 +234,12 @@ is_linking_libcpp: bool = false, | ... | @@ -234,6 +234,12 @@ is_linking_libcpp: bool = false, |
| 234 | /// builtin fuzzer, see the `fuzz` flag in `Module`. | 234 | /// builtin fuzzer, see the `fuzz` flag in `Module`. |
| 235 | sanitize_coverage_trace_pc_guard: ?bool = null, | 235 | sanitize_coverage_trace_pc_guard: ?bool = null, |
| 236 | 236 | ||
| 237 | /// Enable or disable incremental compilation. | ||
| 238 | /// | ||
| 239 | /// Incremental compilation reduces compile time by mutating an existing build artifact. Non- | ||
| 240 | /// incremental compilation is slower but preserves previous build artifacts. | ||
| 241 | incremental: ?bool = null, | ||
| 242 | |||
| 237 | emit_directory: Configuration.OptionalGeneratedFileIndex = .none, | 243 | emit_directory: Configuration.OptionalGeneratedFileIndex = .none, |
| 238 | generated_docs: Configuration.OptionalGeneratedFileIndex = .none, | 244 | generated_docs: Configuration.OptionalGeneratedFileIndex = .none, |
| 239 | generated_asm: Configuration.OptionalGeneratedFileIndex = .none, | 245 | generated_asm: Configuration.OptionalGeneratedFileIndex = .none, |