Skip to content

Commit 89914ad

Browse files
committed
[libcxx] Recognize __UEFI__ predefine
The new target triple x86_64-uefi does not set _WIN32 macro. It sets a new predefine __UEFI__. Update platform to recognize if the target object format is COFF based on __UEFI__ as well.
1 parent 501dcab commit 89914ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__configuration/platform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# define _LIBCPP_OBJECT_FORMAT_ELF 1
2121
#elif defined(__MACH__)
2222
# define _LIBCPP_OBJECT_FORMAT_MACHO 1
23-
#elif defined(_WIN32)
23+
#elif defined(_WIN32) || defined(__UEFI__)
2424
# define _LIBCPP_OBJECT_FORMAT_COFF 1
2525
#elif defined(__wasm__)
2626
# define _LIBCPP_OBJECT_FORMAT_WASM 1

0 commit comments

Comments
 (0)