| ... | @@ -559,7 +559,11 @@ static void construct_linker_job_coff(LinkJob *lj) { | ... | @@ -559,7 +559,11 @@ static void construct_linker_job_coff(LinkJob *lj) { |
| 559 | bool is_library = g->out_type == OutTypeLib; | 559 | bool is_library = g->out_type == OutTypeLib; |
| 560 | switch (g->subsystem) { | 560 | switch (g->subsystem) { |
| 561 | case TargetSubsystemAuto: | 561 | case TargetSubsystemAuto: |
| 562 | add_nt_link_args(lj, is_library); | 562 | if (g->zig_target->os == OsUefi) { |
| | 563 | add_uefi_link_args(lj); |
| | 564 | } else { |
| | 565 | add_nt_link_args(lj, is_library); |
| | 566 | } |
| 563 | break; | 567 | break; |
| 564 | case TargetSubsystemConsole: | 568 | case TargetSubsystemConsole: |
| 565 | lj->args.append("/SUBSYSTEM:console"); | 569 | lj->args.append("/SUBSYSTEM:console"); |