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:
parent
7b9b0469cb
commit
f91ceef291
1 changed files with 3 additions and 11 deletions
|
|
@ -218,17 +218,9 @@ fn linkGLFWDependencies(b: *Builder, step: *std.build.LibExeObjStep, options: Op
|
||||||
}
|
}
|
||||||
step.linkSystemLibrary("objc");
|
step.linkSystemLibrary("objc");
|
||||||
step.linkFramework("AppKit");
|
step.linkFramework("AppKit");
|
||||||
|
step.linkFramework("CoreServices");
|
||||||
// TODO(system_sdk): update MacOS system SDK so we can remove this, see:
|
step.linkFramework("CoreGraphics");
|
||||||
// https://github.com/hexops/mach/pull/63#issuecomment-962141088
|
step.linkFramework("Foundation");
|
||||||
switch (@import("builtin").target.os.tag) {
|
|
||||||
.macos => {},
|
|
||||||
else => {
|
|
||||||
step.linkFramework("CoreServices");
|
|
||||||
step.linkFramework("CoreGraphics");
|
|
||||||
step.linkFramework("Foundation");
|
|
||||||
},
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
else => {
|
else => {
|
||||||
// Assume Linux-like
|
// Assume Linux-like
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue