diff --git a/build.zig b/build.zig index 6d713f476..d2ed2d699 100644 --- a/build.zig +++ b/build.zig @@ -14,8 +14,6 @@ const LipoStep = @import("src/build/LipoStep.zig"); const XCFrameworkStep = @import("src/build/XCFrameworkStep.zig"); const Version = @import("src/build/Version.zig"); -const system_sdk = @import("vendor/mach-glfw/system_sdk.zig"); - // Do a comptime Zig version requirement. The required Zig version is // somewhat arbitrary: it is meant to be a version that we feel works well, // but we liberally update it. In the future, we'll be more careful about @@ -851,7 +849,6 @@ fn addSystemSDK( step: *std.Build.CompileStep, ) !void { if (step.target.isDarwin()) { - system_sdk.include(b, step, .{}); try @import("apple_sdk").addPaths(b, step); } diff --git a/pkg/apple-sdk/build.zig b/pkg/apple-sdk/build.zig index a2bf86524..248fd5fea 100644 --- a/pkg/apple-sdk/build.zig +++ b/pkg/apple-sdk/build.zig @@ -35,7 +35,7 @@ pub fn addPaths(b: *std.Build, step: *std.build.CompileStep) !void { ); // https://github.com/ziglang/zig/issues/17358 - b.sysroot = xSdkPath("/zig-cache/xcode_frameworks"); + if (step.target.isNative()) b.sysroot = xSdkPath("/zig-cache/xcode_frameworks"); step.addSystemFrameworkPath(.{ .path = xSdkPath("/zig-cache/xcode_frameworks/Frameworks") }); step.addSystemIncludePath(.{ .path = xSdkPath("/zig-cache/xcode_frameworks/include") });