authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-12-28 18:05:30-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-01-01 19:49:08-07:00
log751ff043d777c31655757df3ca93b2acaa8204a4
tree22017314ebd1522f5457181001d6a6a74ad9bb9c
parent196ddf010c97f2faf69513e61099a233d4270795

fix stack_iterator test build script

When I updated this build script to the new API, I incorrectly translated the logic for setting unwind_tables. This commit fixes it.

1 files changed, 2 insertions(+), 2 deletions(-)

test/standalone/stack_iterator/build.zig+2-2
......@@ -22,7 +22,7 @@ pub fn build(b: *std.Build) void {
2222 .root_source_file = .{ .path = "unwind.zig" },
2323 .target = target,
2424 .optimize = optimize,
25 .unwind_tables = target.result.isDarwin(),
25 .unwind_tables = if (target.result.isDarwin()) true else null,
2626 .omit_frame_pointer = false,
2727 });
2828
......@@ -84,7 +84,7 @@ pub fn build(b: *std.Build) void {
8484 .root_source_file = .{ .path = "shared_lib_unwind.zig" },
8585 .target = target,
8686 .optimize = optimize,
87 .unwind_tables = target.result.isDarwin(),
87 .unwind_tables = if (target.result.isDarwin()) true else null,
8888 .omit_frame_pointer = true,
8989 });
9090