| ... | @@ -59,10 +59,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro | ... | @@ -59,10 +59,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro |
| 59 | .crt1_o => { | 59 | .crt1_o => { |
| 60 | var args = std.ArrayList([]const u8).init(arena); | 60 | var args = std.ArrayList([]const u8).init(arena); |
| 61 | try addCcArgs(comp, arena, &args, false); | 61 | try addCcArgs(comp, arena, &args, false); |
| 62 | try args.appendSlice(&[_][]const u8{ | 62 | try args.append("-DCRT"); |
| 63 | "-fno-stack-protector", | | |
| 64 | "-DCRT", | | |
| 65 | }); | | |
| 66 | var files = [_]Compilation.CSourceFile{ | 63 | var files = [_]Compilation.CSourceFile{ |
| 67 | .{ | 64 | .{ |
| 68 | .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{ | 65 | .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{ |
| ... | @@ -79,10 +76,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro | ... | @@ -79,10 +76,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro |
| 79 | .rcrt1_o => { | 76 | .rcrt1_o => { |
| 80 | var args = std.ArrayList([]const u8).init(arena); | 77 | var args = std.ArrayList([]const u8).init(arena); |
| 81 | try addCcArgs(comp, arena, &args, false); | 78 | try addCcArgs(comp, arena, &args, false); |
| 82 | try args.appendSlice(&[_][]const u8{ | 79 | try args.append("-DCRT"); |
| 83 | "-fno-stack-protector", | | |
| 84 | "-DCRT", | | |
| 85 | }); | | |
| 86 | var files = [_]Compilation.CSourceFile{ | 80 | var files = [_]Compilation.CSourceFile{ |
| 87 | .{ | 81 | .{ |
| 88 | .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{ | 82 | .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{ |
| ... | @@ -100,10 +94,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro | ... | @@ -100,10 +94,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro |
| 100 | .scrt1_o => { | 94 | .scrt1_o => { |
| 101 | var args = std.ArrayList([]const u8).init(arena); | 95 | var args = std.ArrayList([]const u8).init(arena); |
| 102 | try addCcArgs(comp, arena, &args, false); | 96 | try addCcArgs(comp, arena, &args, false); |
| 103 | try args.appendSlice(&[_][]const u8{ | 97 | try args.append("-DCRT"); |
| 104 | "-fno-stack-protector", | | |
| 105 | "-DCRT", | | |
| 106 | }); | | |
| 107 | var files = [_]Compilation.CSourceFile{ | 98 | var files = [_]Compilation.CSourceFile{ |
| 108 | .{ | 99 | .{ |
| 109 | .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{ | 100 | .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{ |