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 {...@@ -22,7 +22,7 @@ pub fn build(b: *std.Build) void {
22 .root_source_file = .{ .path = "unwind.zig" },22 .root_source_file = .{ .path = "unwind.zig" },
23 .target = target,23 .target = target,
24 .optimize = optimize,24 .optimize = optimize,
25 .unwind_tables = target.result.isDarwin(),25 .unwind_tables = if (target.result.isDarwin()) true else null,
26 .omit_frame_pointer = false,26 .omit_frame_pointer = false,
27 });27 });
2828
...@@ -84,7 +84,7 @@ pub fn build(b: *std.Build) void {...@@ -84,7 +84,7 @@ pub fn build(b: *std.Build) void {
84 .root_source_file = .{ .path = "shared_lib_unwind.zig" },84 .root_source_file = .{ .path = "shared_lib_unwind.zig" },
85 .target = target,85 .target = target,
86 .optimize = optimize,86 .optimize = optimize,
87 .unwind_tables = target.result.isDarwin(),87 .unwind_tables = if (target.result.isDarwin()) true else null,
88 .omit_frame_pointer = true,88 .omit_frame_pointer = true,
89 });89 });
9090