Skip to content

Commit f708aa4

Browse files
authored
Merge pull request #4 from ianprime0509/zig-0.14.0-compat
Add compatibility with Zig 0.14.0
2 parents 73098ea + c78a922 commit f708aa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ pub fn build(b: *std.Build) !void {
258258
// Utility library suite
259259
const util_libs_step = b.step("util_libs", "Install utility library suite");
260260

261-
if (!target.result.isDarwin()) {
261+
if (!target.result.os.tag.isDarwin()) {
262262
const dislocator_lib = b.addSharedLibrary(.{
263263
.name = "dislocator",
264264
.pic = true,
@@ -464,7 +464,7 @@ fn setupLLVMTooling(
464464
llvm_cpp_flags.appendSliceAssumeCapacity(&.{
465465
b.fmt("-std={s}", .{if (llvm_major < 10) "gnu++11" else if (llvm_major < 16) "c++14" else "c++17"}),
466466
});
467-
if (enable_wafl and target.result.isWasm()) {
467+
if (enable_wafl and target.result.cpu.arch.isWasm()) {
468468
llvm_cpp_flags.appendSliceAssumeCapacity(&.{ "-DNDEBUG", "-DNO_TLS" });
469469
}
470470

0 commit comments

Comments
 (0)