From 16c581b2ab29fd81f02fa816484b45cf5dfb760b Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 4 Mar 2022 15:41:00 -0700 Subject: [PATCH] glfw: fix x86_64-windows-msvc compilation support This fixes compilation for msvc ABI. This currently only works under Windows, I believe because Zig requires the Windows SDK to be present for msvc compilation / does not allow cross compilation with MSVC. Still, this is nice to have. Signed-off-by: Stephen Gutekanst --- glfw/build.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glfw/build.zig b/glfw/build.zig index b237507a..af432cae 100644 --- a/glfw/build.zig +++ b/glfw/build.zig @@ -111,6 +111,8 @@ fn linkGLFWDependencies(b: *Builder, step: *std.build.LibExeObjStep, options: Op switch (target.os.tag) { .windows => { step.linkSystemLibrary("gdi32"); + step.linkSystemLibrary("user32"); + step.linkSystemLibrary("Shell32"); if (options.opengl) { step.linkSystemLibrary("opengl32"); }