| ... | @@ -9,7 +9,6 @@ const target_util = @import("target.zig"); | ... | @@ -9,7 +9,6 @@ const target_util = @import("target.zig"); |
| 9 | const musl = @import("musl.zig"); | 9 | const musl = @import("musl.zig"); |
| 10 | | 10 | |
| 11 | pub const CRTFile = enum { | 11 | pub const CRTFile = enum { |
| 12 | crt1_o, | | |
| 13 | crt1_reactor_o, | 12 | crt1_reactor_o, |
| 14 | crt1_command_o, | 13 | crt1_command_o, |
| 15 | libc_a, | 14 | libc_a, |
| ... | @@ -71,19 +70,6 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile) !void { | ... | @@ -71,19 +70,6 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile) !void { |
| 71 | const arena = &arena_allocator.allocator; | 70 | const arena = &arena_allocator.allocator; |
| 72 | | 71 | |
| 73 | switch (crt_file) { | 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 | .crt1_reactor_o => { | 73 | .crt1_reactor_o => { |
| 88 | var args = std.ArrayList([]const u8).init(arena); | 74 | var args = std.ArrayList([]const u8).init(arena); |
| 89 | try addCCArgs(comp, arena, &args, false); | 75 | try addCCArgs(comp, arena, &args, false); |
| ... | @@ -1151,7 +1137,6 @@ const libc_top_half_src_files = [_][]const u8{ | ... | @@ -1151,7 +1137,6 @@ const libc_top_half_src_files = [_][]const u8{ |
| 1151 | "wasi/libc-top-half/sources/arc4random.c", | 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 | const crt1_command_src_file = "wasi/libc-bottom-half/crt/crt1-command.c"; | 1140 | const crt1_command_src_file = "wasi/libc-bottom-half/crt/crt1-command.c"; |
| 1156 | const crt1_reactor_src_file = "wasi/libc-bottom-half/crt/crt1-reactor.c"; | 1141 | const crt1_reactor_src_file = "wasi/libc-bottom-half/crt/crt1-reactor.c"; |
| 1157 | | 1142 | |