Skip to content

Commit c78a922

Browse files
committed
Add compatibility with Zig 0.14.0
This change does not require Zig 0.14.0 (it works fine with 0.13.0 as well), but allows the project to be used from Zig 0.14.0 as well.
1 parent 73098ea commit c78a922

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)