From f91ceef29157908b72295dcf5171c3f9ec6a4a9f Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 26 Nov 2021 22:17:42 -0700 Subject: [PATCH] glfw: support building with latest Zig master This removes a linker hack which was preventing building with the latest Zig master version. Of particular note, anyone wishing to use this library will need to ensure they are up to date with latest master. The binary releases available at https://ziglang.org/download/ (1783+eec825c and beyond) are sufficient (really, anything released after today.) Fixes hexops/mach#103 Signed-off-by: Stephen Gutekanst --- glfw/build.zig | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/glfw/build.zig b/glfw/build.zig index 8c709668..5cc48721 100644 --- a/glfw/build.zig +++ b/glfw/build.zig @@ -218,17 +218,9 @@ fn linkGLFWDependencies(b: *Builder, step: *std.build.LibExeObjStep, options: Op } step.linkSystemLibrary("objc"); step.linkFramework("AppKit"); - - // TODO(system_sdk): update MacOS system SDK so we can remove this, see: - // https://github.com/hexops/mach/pull/63#issuecomment-962141088 - switch (@import("builtin").target.os.tag) { - .macos => {}, - else => { - step.linkFramework("CoreServices"); - step.linkFramework("CoreGraphics"); - step.linkFramework("Foundation"); - }, - } + step.linkFramework("CoreServices"); + step.linkFramework("CoreGraphics"); + step.linkFramework("Foundation"); }, else => { // Assume Linux-like