Skip to content

Commit 578e7a3

Browse files
committed
on windows, build qjsc-host in ReleaseSafe to avoid a crash
1 parent 848e8ee commit 578e7a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ pub fn build(b: *std.Build) void {
170170
.name = "qjsc-host",
171171
.root_module = b.createModule(.{
172172
.target = b.graph.host,
173-
.optimize = .Debug,
173+
// https://github.com/allyourcodebase/quickjs/issues/1
174+
.optimize = if (b.graph.host.result.os.tag == .windows) .ReleaseSafe else .Debug,
174175
}),
175176
});
176177

0 commit comments

Comments
 (0)