commit e834d0369a2339059284bcd9e695ae3ef25509fb (tree)
parent 58bd6c5f8e4b26300dcdd9542881fe148fb51d0c
Author: Alex Cameron <ascottcameron@gmail.com>
Date: Sun, 22 Nov 2020 18:59:48 +1100
Make sure emit-h is off by default.
Diffstat:
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/src/main.zig b/src/main.zig
@@ -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..];