| ... | @@ -143,7 +143,16 @@ pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progre | ... | @@ -143,7 +143,16 @@ pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progre |
| 143 | // Compile libwasi-emulated-process-clocks. | 143 | // Compile libwasi-emulated-process-clocks. |
| 144 | var args = std.ArrayList([]const u8).init(arena); | 144 | var args = std.ArrayList([]const u8).init(arena); |
| 145 | try addCCArgs(comp, arena, &args, .{ .want_O3 = true }); | 145 | 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 | }); |
| 147 | | 156 | |
| 148 | for (emulated_process_clocks_src_files) |file_path| { | 157 | for (emulated_process_clocks_src_files) |file_path| { |
| 149 | try libc_sources.append(.{ | 158 | try libc_sources.append(.{ |