Skip to content

Commit bcccf1f

Browse files
authored
add __UEFI__ to windows predefines
Updating the PE COFF generating windows code path to predefine the new __UEFI__ macro.
1 parent 4ef8bcd commit bcccf1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/Basic/Targets/OSTargets.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ static void addVisualCDefines(const LangOptions &Opts, MacroBuilder &Builder) {
259259

260260
void addWindowsDefines(const llvm::Triple &Triple, const LangOptions &Opts,
261261
MacroBuilder &Builder) {
262+
Builder.defineMacro("__UEFI__");
262263
Builder.defineMacro("_WIN32");
263264
if (Triple.isArch64Bit())
264265
Builder.defineMacro("_WIN64");

0 commit comments

Comments
 (0)