Make sure emit-h is off by default.

This commit is contained in:
Alex Cameron 2020-11-22 18:59:48 +11:00
parent 58bd6c5f8e
commit e834d0369a

View File

@ -490,7 +490,7 @@ fn buildOutputType(
var target_dynamic_linker: ?[]const u8 = null;
var target_ofmt: ?[]const u8 = null;
var output_mode: std.builtin.OutputMode = undefined;
var emit_h: Emit = undefined;
var emit_h: Emit = .no;
var soname: SOName = undefined;
var ensure_libc_on_non_freestanding = false;
var ensure_libcpp_on_non_freestanding = false;
@ -591,14 +591,6 @@ fn buildOutputType(
},
else => unreachable,
}
switch (arg_mode) {
.build => switch (output_mode) {
.Exe => emit_h = .no,
.Obj, .Lib => emit_h = .yes_default_path,
},
.translate_c, .zig_test, .run => emit_h = .no,
else => unreachable,
}
soname = .yes_default_value;
const args = all_args[2..];