diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-09-25 11:11:48 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-09-26 12:35:14 -0700 |
| commit | 4f8d244e7ea47a8cdb41496d51961ef4ba3ec2af (patch) | |
| tree | c12d45a7aeadec432e0e40760923ac3c6ea937bc /src/Compilation.zig | |
| parent | 04e694ad116ad2706328c13ce3643347330a861f (diff) | |
| download | zig-4f8d244e7ea47a8cdb41496d51961ef4ba3ec2af.tar.gz zig-4f8d244e7ea47a8cdb41496d51961ef4ba3ec2af.zip | |
remove formatted panics
implements #17969
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 3ca4d376e9..227b6e67ef 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -195,7 +195,6 @@ job_queued_compiler_rt_obj: bool = false, job_queued_fuzzer_lib: bool = false, job_queued_update_builtin_zig: bool, alloc_failure_occurred: bool = false, -formatted_panics: bool = false, last_update_was_cache_hit: bool = false, c_source_files: []const CSourceFile, @@ -1088,7 +1087,6 @@ pub const CreateOptions = struct { /// executable this field is ignored. want_compiler_rt: ?bool = null, want_lto: ?bool = null, - formatted_panics: ?bool = null, function_sections: bool = false, data_sections: bool = false, no_builtin: bool = false, @@ -1357,9 +1355,6 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil } } - // TODO: https://github.com/ziglang/zig/issues/17969 - const formatted_panics = options.formatted_panics orelse (options.root_mod.optimize_mode == .Debug); - const error_limit = options.error_limit orelse (std.math.maxInt(u16) - 1); // We put everything into the cache hash that *cannot be modified @@ -1520,7 +1515,6 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil .verbose_link = options.verbose_link, .disable_c_depfile = options.disable_c_depfile, .reference_trace = options.reference_trace, - .formatted_panics = formatted_panics, .time_report = options.time_report, .stack_report = options.stack_report, .test_filters = options.test_filters, @@ -1638,7 +1632,6 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil hash.addListOfBytes(options.test_filters); hash.addOptionalBytes(options.test_name_prefix); hash.add(options.skip_linker_dependencies); - hash.add(formatted_panics); hash.add(options.emit_h != null); hash.add(error_limit); @@ -2564,7 +2557,6 @@ fn addNonIncrementalStuffToCacheManifest( man.hash.addListOfBytes(comp.test_filters); man.hash.addOptionalBytes(comp.test_name_prefix); man.hash.add(comp.skip_linker_dependencies); - man.hash.add(comp.formatted_panics); //man.hash.add(mod.emit_h != null); man.hash.add(mod.error_limit); } else { |
