| ... | @@ -205,7 +205,6 @@ pub fn createEmpty( | ... | @@ -205,7 +205,6 @@ pub fn createEmpty( |
| 205 | const target = &comp.root_mod.resolved_target.result; | 205 | const target = &comp.root_mod.resolved_target.result; |
| 206 | const output_mode = comp.config.output_mode; | 206 | const output_mode = comp.config.output_mode; |
| 207 | const optimize_mode = comp.root_mod.optimize_mode; | 207 | const optimize_mode = comp.root_mod.optimize_mode; |
| 208 | const is_native_os = comp.root_mod.resolved_target.is_native_os; | | |
| 209 | | 208 | |
| 210 | const obj_file_ext: []const u8 = switch (target.ofmt) { | 209 | const obj_file_ext: []const u8 = switch (target.ofmt) { |
| 211 | .coff => "obj", | 210 | .coff => "obj", |
| ... | @@ -234,7 +233,7 @@ pub fn createEmpty( | ... | @@ -234,7 +233,7 @@ pub fn createEmpty( |
| 234 | .gc_sections = gc_sections, | 233 | .gc_sections = gc_sections, |
| 235 | .print_gc_sections = options.print_gc_sections, | 234 | .print_gc_sections = options.print_gc_sections, |
| 236 | .stack_size = stack_size, | 235 | .stack_size = stack_size, |
| 237 | .allow_shlib_undefined = options.allow_shlib_undefined orelse !is_native_os, | 236 | .allow_shlib_undefined = options.allow_shlib_undefined orelse false, |
| 238 | .file = null, | 237 | .file = null, |
| 239 | .build_id = options.build_id, | 238 | .build_id = options.build_id, |
| 240 | }, | 239 | }, |