diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-12-28 18:05:30 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-01-01 19:49:08 -0700 |
| commit | 751ff043d777c31655757df3ca93b2acaa8204a4 (patch) | |
| tree | 22017314ebd1522f5457181001d6a6a74ad9bb9c /test/standalone/stack_iterator/build.zig | |
| parent | 196ddf010c97f2faf69513e61099a233d4270795 (diff) | |
| download | zig-751ff043d777c31655757df3ca93b2acaa8204a4.tar.gz zig-751ff043d777c31655757df3ca93b2acaa8204a4.zip | |
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.
Diffstat (limited to 'test/standalone/stack_iterator/build.zig')
| -rw-r--r-- | test/standalone/stack_iterator/build.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/standalone/stack_iterator/build.zig b/test/standalone/stack_iterator/build.zig index d40a377d39..463a533ac4 100644 --- a/test/standalone/stack_iterator/build.zig +++ b/test/standalone/stack_iterator/build.zig @@ -22,7 +22,7 @@ pub fn build(b: *std.Build) void { .root_source_file = .{ .path = "unwind.zig" }, .target = target, .optimize = optimize, - .unwind_tables = target.result.isDarwin(), + .unwind_tables = if (target.result.isDarwin()) true else null, .omit_frame_pointer = false, }); @@ -84,7 +84,7 @@ pub fn build(b: *std.Build) void { .root_source_file = .{ .path = "shared_lib_unwind.zig" }, .target = target, .optimize = optimize, - .unwind_tables = target.result.isDarwin(), + .unwind_tables = if (target.result.isDarwin()) true else null, .omit_frame_pointer = true, }); |
