Skip to content

Commit be94bb7

Browse files
committed
try forcing LLVM
1 parent c5857ef commit be94bb7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.zig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ pub fn build(b: *std.Build) !void {
3030
});
3131
try addCommonRequirements(mod, &deps);
3232

33+
// Workaround: uucode's generated tables trigger a crash in Zig's
34+
// self-hosted x86_64 backend. Force LLVM until this is resolved upstream.
3335
const exe = b.addExecutable(.{
3436
.name = "koino",
37+
.use_llvm = true,
3538
.root_module = b.createModule(.{
3639
.root_source_file = b.path("src/main.zig"),
3740

@@ -57,6 +60,7 @@ pub fn build(b: *std.Build) !void {
5760

5861
const example = b.addExecutable(.{
5962
.name = "koino_example",
63+
.use_llvm = true,
6064
.root_module = b.createModule(.{
6165
.root_source_file = b.path("examples/to-html.zig"),
6266

@@ -78,6 +82,7 @@ pub fn build(b: *std.Build) !void {
7882
example_run_step.dependOn(&example_run_cmd.step);
7983

8084
const test_exe = b.addTest(.{
85+
.use_llvm = true,
8186
.root_module = b.createModule(.{
8287
.root_source_file = b.path("src/main.zig"),
8388

0 commit comments

Comments
 (0)