Skip to content

Commit

Permalink
fix Windows detection when running emsdk
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Jan 13, 2024
1 parent 3132a17 commit b24d25a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b24d25a

Please sign in to comment.