Skip to content

Commit 6cf955a

Browse files
committed
HACK: ICU v2
1 parent 8634959 commit 6cf955a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

deps/icu-small/source/tools/toolutil/pkg_genc.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,16 @@ getArchitecture(uint16_t *pCPU, uint16_t *pBits, UBool *pIsBigEndian, const char
847847
# if defined(_M_IX86)
848848
*pCPU = IMAGE_FILE_MACHINE_I386;
849849
# else
850+
#ifndef __clang__
851+
// The linker for ClangCL doesn't work with unknown.
850852
*pCPU = IMAGE_FILE_MACHINE_UNKNOWN;
853+
#elif defined(_M_AMD64)
854+
*pCPU = IMAGE_FILE_MACHINE_AMD64;
855+
#elif defined(_M_ARM64)
856+
*pCPU = IMAGE_FILE_MACHINE_ARM64;
857+
#else
858+
#error "Unknown platform for CAN_GENERATE_OBJECTS."
859+
#endif // ifndef __clang__
851860
# endif
852861
# if defined(_M_IA64) || defined(_M_AMD64) || defined (_M_ARM64)
853862
*pBits = 64; // Doesn't seem to be used for anything interesting though?

0 commit comments

Comments
 (0)