Skip to content

Commit 2bf9ff1

Browse files
committed
wasi: Fix libwasi-emulated-process-clocks build
Might have been broken in 05d8b56.
1 parent 1f1082e commit 2bf9ff1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/libs/wasi_libc.zig

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,16 @@ pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progre
143143
// Compile libwasi-emulated-process-clocks.
144144
var args = std.ArrayList([]const u8).init(arena);
145145
try addCCArgs(comp, arena, &args, .{ .want_O3 = true });
146-
try addLibcBottomHalfIncludes(comp, arena, &args);
146+
try args.appendSlice(&.{
147+
"-I",
148+
try comp.dirs.zig_lib.join(arena, &.{
149+
"libc",
150+
"wasi",
151+
"libc-bottom-half",
152+
"cloudlibc",
153+
"src",
154+
}),
155+
});
147156

148157
for (emulated_process_clocks_src_files) |file_path| {
149158
try libc_sources.append(.{

0 commit comments

Comments
 (0)