Skip to content

Commit

Permalink
CI: fix macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Dec 18, 2023
1 parent 983a704 commit 5d27802
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ pub fn build(b: *Builder) !void {
// "-w", // warnings as error
"--wo", // warning of deprecated features
},
.zig_cc = true, // use zig as cc and linker
// fixme: target name conflics (arch-macos-none != arch-apple-macos)
.zig_cc = if (builtin.os.tag == .macos) false else true, // use zig as cc and linker
});
ldc.setName("ldc2");
ldc.step.dependOn(b.getInstallStep());
Expand Down
1 change: 1 addition & 0 deletions scripts/zcc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ for arg in "$@"; do
fi
done

# ldc2 need libunwind for exception
zig cc -lunwind "${ARGS[@]}"

0 comments on commit 5d27802

Please sign in to comment.