authorgravatar for ascottcameron@gmail.comAlex Cameron <ascottcameron@gmail.com> 2020-11-22 18:59:48+11:00
committergravatar for ascottcameron@gmail.comAlex Cameron <ascottcameron@gmail.com> 2020-12-23 01:14:35+11:00
loge834d0369a2339059284bcd9e695ae3ef25509fb
tree9a14afce419e2df7095785658d4d22be42fbd394
parent58bd6c5f8e4b26300dcdd9542881fe148fb51d0c

Make sure emit-h is off by default.


1 files changed, 1 insertions(+), 9 deletions(-)

src/main.zig+1-9
...@@ -490,7 +490,7 @@ fn buildOutputType(...@@ -490,7 +490,7 @@ fn buildOutputType(
490 var target_dynamic_linker: ?[]const u8 = null;490 var target_dynamic_linker: ?[]const u8 = null;
491 var target_ofmt: ?[]const u8 = null;491 var target_ofmt: ?[]const u8 = null;
492 var output_mode: std.builtin.OutputMode = undefined;492 var output_mode: std.builtin.OutputMode = undefined;
493 var emit_h: Emit = undefined;493 var emit_h: Emit = .no;
494 var soname: SOName = undefined;494 var soname: SOName = undefined;
495 var ensure_libc_on_non_freestanding = false;495 var ensure_libc_on_non_freestanding = false;
496 var ensure_libcpp_on_non_freestanding = false;496 var ensure_libcpp_on_non_freestanding = false;
...@@ -591,14 +591,6 @@ fn buildOutputType(...@@ -591,14 +591,6 @@ fn buildOutputType(
591 },591 },
592 else => unreachable,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 }
602594
603 soname = .yes_default_value;595 soname = .yes_default_value;
604 const args = all_args[2..];596 const args = all_args[2..];