| ... | ... | @@ -9,7 +9,6 @@ const target_util = @import("target.zig"); |
| 9 | 9 | const musl = @import("musl.zig"); |
| 10 | 10 | |
| 11 | 11 | pub const CRTFile = enum { |
| 12 | | crt1_o, |
| 13 | 12 | crt1_reactor_o, |
| 14 | 13 | crt1_command_o, |
| 15 | 14 | libc_a, |
| ... | ... | @@ -71,19 +70,6 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile) !void { |
| 71 | 70 | const arena = &arena_allocator.allocator; |
| 72 | 71 | |
| 73 | 72 | switch (crt_file) { |
| 74 | | .crt1_o => { |
| 75 | | var args = std.ArrayList([]const u8).init(arena); |
| 76 | | try addCCArgs(comp, arena, &args, false); |
| 77 | | try addLibcBottomHalfIncludes(comp, arena, &args); |
| 78 | | return comp.build_crt_file("crt1", .Obj, &[1]Compilation.CSourceFile{ |
| 79 | | .{ |
| 80 | | .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{ |
| 81 | | "libc", try sanitize(arena, crt1_src_file), |
| 82 | | }), |
| 83 | | .extra_flags = args.items, |
| 84 | | }, |
| 85 | | }); |
| 86 | | }, |
| 87 | 73 | .crt1_reactor_o => { |
| 88 | 74 | var args = std.ArrayList([]const u8).init(arena); |
| 89 | 75 | try addCCArgs(comp, arena, &args, false); |
| ... | ... | @@ -1151,7 +1137,6 @@ const libc_top_half_src_files = [_][]const u8{ |
| 1151 | 1137 | "wasi/libc-top-half/sources/arc4random.c", |
| 1152 | 1138 | }; |
| 1153 | 1139 | |
| 1154 | | const crt1_src_file = "wasi/libc-bottom-half/crt/crt1.c"; |
| 1155 | 1140 | const crt1_command_src_file = "wasi/libc-bottom-half/crt/crt1-command.c"; |
| 1156 | 1141 | const crt1_reactor_src_file = "wasi/libc-bottom-half/crt/crt1-reactor.c"; |
| 1157 | 1142 | |