Skip to content

Commit cb1196e

Browse files
committed
build: force use_llvm until we remove global asm
global asm is unlikely to be supported in future zig so we need to do coroutines using inline asm somehow
1 parent a77678b commit cb1196e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ pub fn build(b: *std.Build) void {
8181
const exe = b.addExecutable(.{
8282
.name = @tagName(example),
8383
.root_module = module,
84+
.use_llvm = true,
8485
});
8586
exe.root_module.addImport("aio", aio);
8687
exe.root_module.addImport("coro", coro);
@@ -105,6 +106,7 @@ pub fn build(b: *std.Build) void {
105106
const tst = b.addTest(.{
106107
.root_module = module,
107108
.filters = &.{test_filter},
109+
.use_llvm = true,
108110
});
109111
switch (mod) {
110112
.minilib => addImportsFrom(tst.root_module, minilib),
@@ -140,6 +142,7 @@ pub fn build(b: *std.Build) void {
140142
const exe = b.addExecutable(.{
141143
.name = @tagName(bug),
142144
.root_module = module,
145+
.use_llvm = true,
143146
});
144147
exe.root_module.addImport("aio", aio);
145148
exe.root_module.addImport("coro", coro);
@@ -170,6 +173,7 @@ pub fn build(b: *std.Build) void {
170173
const exe = b.addExecutable(.{
171174
.name = @tagName(bench),
172175
.root_module = module,
176+
.use_llvm = true,
173177
});
174178
exe.root_module.addImport("aio", aio);
175179
exe.root_module.addImport("coro", coro);

0 commit comments

Comments
 (0)