authorgravatar for ascottcameron@gmail.comAlex Cameron <ascottcameron@gmail.com> 2020-11-19 19:20:10+11:00
committergravatar for ascottcameron@gmail.comAlex Cameron <ascottcameron@gmail.com> 2020-12-23 01:14:35+11:00
logaba273d7313ece312cbf747ab5808063a6d8a1b4
treed9ee37d15a8107f5224e34cdeda2e4511b6a1eb0
parent40f0275e7cb7f3f4b2c382e5b457e714080c4cf2

Enable emit-h by default for obj and lib compilation.


1 files changed, 8 insertions(+), 10 deletions(-)

src/main.zig+8-10
......@@ -591,16 +591,14 @@ fn buildOutputType(
591591 },
592592 else => unreachable,
593593 }
594 // TODO finish self-hosted and add support for emitting C header files
595 emit_h = .no;
596 //switch (arg_mode) {
597 // .build => switch (output_mode) {
598 // .Exe => emit_h = .no,
599 // .Obj, .Lib => emit_h = .yes_default_path,
600 // },
601 // .translate_c, .zig_test, .run => emit_h = .no,
602 // else => unreachable,
603 //}
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 }
604602
605603 soname = .yes_default_value;
606604 const args = all_args[2..];