Skip to content

Commit 00854bd

Browse files
committed
wip: replace comptime builtin.target.isDarwin() with is_native_os
1 parent 65d1f4a commit 00854bd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Compilation.zig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,8 +855,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation {
855855
break :blk false;
856856
};
857857

858-
const darwin_native = (comptime builtin.target.isDarwin()) and options.target.isDarwin() and
859-
options.sysroot == null;
858+
const darwin_native = options.is_native_os and options.target.isDarwin() and options.sysroot == null;
860859
const darwin_sdk: ?std.zig.system.darwin.DarwinSDK = if (darwin_native and
861860
!std.zig.system.NativePaths.isNix() and
862861
std.zig.system.darwin.isDarwinSDKInstalled(arena))

0 commit comments

Comments
 (0)