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 <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2021-11-26 22:17:42 -07:00 committed by Stephen Gutekanst
parent 7b9b0469cb
commit f91ceef291

View file

@ -218,18 +218,10 @@ 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");
},
}
},
else => {
// Assume Linux-like
switch (options.linux_window_manager) {