diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-09-06 17:53:21 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-09-07 22:42:58 +0200 |
| commit | 945111ae92c28f8ad642a64af4dc83acd3bef4a5 (patch) | |
| tree | 931a19b81cbf097a2bd049eafb3ac0b5252ef7b3 /lib | |
| parent | 7b8cc599d997759201a945d05b91c24f5cfe29d7 (diff) | |
| download | zig-945111ae92c28f8ad642a64af4dc83acd3bef4a5.tar.gz zig-945111ae92c28f8ad642a64af4dc83acd3bef4a5.zip | |
enable testing of x86_64-windows-gnu using self-hosted backend and linker
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/std/build.zig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/std/build.zig b/lib/std/build.zig index 4c05586159..76744b12d2 100644 --- a/lib/std/build.zig +++ b/lib/std/build.zig @@ -1623,6 +1623,7 @@ pub const LibExeObjStep = struct { /// Overrides the default stack size stack_size: ?u64 = null, + use_unwind_tables: ?bool = null, want_lto: ?bool = null, use_stage1: ?bool = null, use_llvm: ?bool = null, @@ -2505,6 +2506,14 @@ pub const LibExeObjStep = struct { } } + if (self.use_unwind_tables) |use_unwind_tables| { + if (use_unwind_tables) { + try zig_args.append("-funwind-tables"); + } else { + try zig_args.append("-fno-unwind-tables"); + } + } + if (self.ofmt) |ofmt| { try zig_args.append(try std.fmt.allocPrint(builder.allocator, "-ofmt={s}", .{@tagName(ofmt)})); } |
