From b24d25ab63ccbd8b4da525091ef9033e25b592a7 Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Sat, 13 Jan 2024 12:08:23 +0100 Subject: [PATCH] fix Windows detection when running emsdk --- build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 1e76450..8319778 100644 --- a/build.zig +++ b/build.zig @@ -123,7 +123,7 @@ pub fn buildLibSokol(b: *Build, options: LibSokolOptions) !*CompileStep { var cmds = std.ArrayList([]const u8).init(b.allocator); defer cmds.deinit(); - if (lib.rootModuleTarget().os.tag == .windows) + if (builtin.os.tag == .windows) try cmds.append(b.pathJoin(&.{ path, "emsdk.bat" })) else { try cmds.append("bash"); // or try chmod