| ... | @@ -591,16 +591,14 @@ fn buildOutputType( | ... | @@ -591,16 +591,14 @@ fn buildOutputType( |
| 591 | }, | 591 | }, |
| 592 | else => unreachable, | 592 | else => unreachable, |
| 593 | } | 593 | } |
| 594 | // TODO finish self-hosted and add support for emitting C header files | 594 | switch (arg_mode) { |
| 595 | emit_h = .no; | 595 | .build => switch (output_mode) { |
| 596 | //switch (arg_mode) { | 596 | .Exe => emit_h = .no, |
| 597 | // .build => switch (output_mode) { | 597 | .Obj, .Lib => emit_h = .yes_default_path, |
| 598 | // .Exe => emit_h = .no, | 598 | }, |
| 599 | // .Obj, .Lib => emit_h = .yes_default_path, | 599 | .translate_c, .zig_test, .run => emit_h = .no, |
| 600 | // }, | 600 | else => unreachable, |
| 601 | // .translate_c, .zig_test, .run => emit_h = .no, | 601 | } |
| 602 | // else => unreachable, | | |
| 603 | //} | | |
| 604 | | 602 | |
| 605 | soname = .yes_default_value; | 603 | soname = .yes_default_value; |
| 606 | const args = all_args[2..]; | 604 | const args = all_args[2..]; |