mirror of
https://github.com/ziglang/zig.git
synced 2026-01-11 18:05:11 +00:00
Make sure emit-h is off by default.
This commit is contained in:
parent
58bd6c5f8e
commit
e834d0369a
10
src/main.zig
10
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..];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user