glfw: always linkLibC

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2021-07-26 01:09:19 -07:00
parent 72972b8725
commit 0be6c041bf

View file

@ -171,10 +171,10 @@ fn linkGLFW(b: *Builder, step: *std.build.LibExeObjStep, options: Options) void
defer b.allocator.free(include_dir); defer b.allocator.free(include_dir);
step.addIncludeDir(include_dir); step.addIncludeDir(include_dir);
step.linkLibC();
const target = (std.zig.system.NativeTargetInfo.detect(b.allocator, step.target) catch unreachable).target; const target = (std.zig.system.NativeTargetInfo.detect(b.allocator, step.target) catch unreachable).target;
switch (target.os.tag) { switch (target.os.tag) {
.windows => { .windows => {
step.linkSystemLibrary("c");
step.linkSystemLibrary("gdi32"); step.linkSystemLibrary("gdi32");
if (options.opengl) { if (options.opengl) {
step.linkFramework("opengl32"); step.linkFramework("opengl32");