Skip to content

Commit 1b1e360

Browse files
authored
[NFC][clang] No sharedlibs for UEFI (#137872)
There is no support for shared libraries for UEFI target. Remove the incorrect -dll flag set from UEFI toolchain.
1 parent b69957f commit 1b1e360

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

clang/lib/Driver/ToolChains/UEFI.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ void tools::uefi::Linker::ConstructJob(Compilation &C, const JobAction &JA,
8080
// "Terminal Service Aware" flag is not needed for UEFI applications.
8181
CmdArgs.push_back("-tsaware:no");
8282

83-
// EFI_APPLICATION to be linked as DLL by default.
84-
CmdArgs.push_back("-dll");
85-
8683
if (Args.hasArg(options::OPT_g_Group, options::OPT__SLASH_Z7))
8784
CmdArgs.push_back("-debug");
8885

clang/test/Driver/uefi-constructed-args.c

-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@
1111
// CHECK-SAME: "-subsystem:efi_application"
1212
// CHECK-SAME: "-entry:EfiMain"
1313
// CHECK-SAME: "-tsaware:no"
14-
// CHECK-SAME: "-dll"
1514
// CHECK-SAME: "-debug"

0 commit comments

Comments
 (0)