diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-01-23 01:38:20 +0100 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2025-01-23 23:22:38 +0000 |
| commit | ef4d7f01a5c26d8ed6fa8236d1b64e4091a51be3 (patch) | |
| tree | 80da7b2ae3a66a5e394d31ccd62421529a14929b /src/target.zig | |
| parent | b46a40ff1db6c4d467925a9a0d72436cdb3a6a74 (diff) | |
| download | zig-ef4d7f01a5c26d8ed6fa8236d1b64e4091a51be3.tar.gz zig-ef4d7f01a5c26d8ed6fa8236d1b64e4091a51be3.zip | |
compiler: Fix computation of Compilation.Config.any_unwind_tables.
This moves the default value logic to Package.Module.create() instead and makes
it so that Compilation.Config.any_unwind_tables is computed similarly to
any_sanitize_thread, any_fuzz, etc. It turns out that for any_unwind_tables, we
only actually care if unwind tables are enabled at all, not at what level.
Diffstat (limited to 'src/target.zig')
| -rw-r--r-- | src/target.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target.zig b/src/target.zig index d3fb77e1b5..99e0fd1faa 100644 --- a/src/target.zig +++ b/src/target.zig @@ -407,7 +407,7 @@ pub fn clangSupportsNoImplicitFloatArg(target: std.Target) bool { }; } -pub fn needUnwindTables(target: std.Target, libunwind: bool, libtsan: bool) std.builtin.UnwindTables { +pub fn defaultUnwindTables(target: std.Target, libunwind: bool, libtsan: bool) std.builtin.UnwindTables { if (target.os.tag == .windows) { // The old 32-bit x86 variant of SEH doesn't use tables. return if (target.cpu.arch != .x86) .@"async" else .none; |
