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(...@@ -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 files594 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 //}
604602
605 soname = .yes_default_value;603 soname = .yes_default_value;
606 const args = all_args[2..];604 const args = all_args[2..];