mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
uefi os: better auto detection of subsystem
This commit is contained in:
parent
d093f51f16
commit
14ca0fd493
@ -559,7 +559,11 @@ static void construct_linker_job_coff(LinkJob *lj) {
|
||||
bool is_library = g->out_type == OutTypeLib;
|
||||
switch (g->subsystem) {
|
||||
case TargetSubsystemAuto:
|
||||
add_nt_link_args(lj, is_library);
|
||||
if (g->zig_target->os == OsUefi) {
|
||||
add_uefi_link_args(lj);
|
||||
} else {
|
||||
add_nt_link_args(lj, is_library);
|
||||
}
|
||||
break;
|
||||
case TargetSubsystemConsole:
|
||||
lj->args.append("/SUBSYSTEM:console");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user