Skip to content

Commit 7b60a8b

Browse files
committed
on windows, build qjsc-host in ReleaseFast to avoid a crash
1 parent 848e8ee commit 7b60a8b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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) .ReleaseFast else .Debug,
174175
}),
175176
});
176177

0 commit comments

Comments
 (0)