| ... | ... | @@ -490,7 +490,7 @@ fn buildOutputType( |
| 490 | 490 | var target_dynamic_linker: ?[]const u8 = null; |
| 491 | 491 | var target_ofmt: ?[]const u8 = null; |
| 492 | 492 | var output_mode: std.builtin.OutputMode = undefined; |
| 493 | | var emit_h: Emit = undefined; |
| 493 | var emit_h: Emit = .no; |
| 494 | 494 | var soname: SOName = undefined; |
| 495 | 495 | var ensure_libc_on_non_freestanding = false; |
| 496 | 496 | var ensure_libcpp_on_non_freestanding = false; |
| ... | ... | @@ -591,14 +591,6 @@ fn buildOutputType( |
| 591 | 591 | }, |
| 592 | 592 | else => unreachable, |
| 593 | 593 | } |
| 594 | | switch (arg_mode) { |
| 595 | | .build => switch (output_mode) { |
| 596 | | .Exe => emit_h = .no, |
| 597 | | .Obj, .Lib => emit_h = .yes_default_path, |
| 598 | | }, |
| 599 | | .translate_c, .zig_test, .run => emit_h = .no, |
| 600 | | else => unreachable, |
| 601 | | } |
| 602 | 594 | |
| 603 | 595 | soname = .yes_default_value; |
| 604 | 596 | const args = all_args[2..]; |