Skip to content

Commit 729f1e5

Browse files
committed
Add support for CLANGARM64 target (#3916)
**This requires an ARM64-machine with Windows 11 installed (which supports x64 emulation for MSYS2)** ### The main idea - Use the main MSYS2/git-sdk-64 setup, which works on Windows 11 on ARM thanks to x64-emulation - Configure the official `clangarm64` MSYS2 repo - Install `mingw-w64-clang-aarch64-toolchain` which contains the ARM64-native Clang compiler
2 parents 21691c3 + f1658b3 commit 729f1e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config.mak.uname

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,10 @@ ifeq ($(uname_S),MINGW)
726726
prefix = /mingw64
727727
HOST_CPU = x86_64
728728
BASIC_LDFLAGS += -Wl,--pic-executable,-e,mainCRTStartup
729+
else ifeq (CLANGARM64,$(MSYSTEM))
730+
prefix = /clangarm64
731+
HOST_CPU = aarch64
732+
BASIC_LDFLAGS += -Wl,--pic-executable,-e,mainCRTStartup
729733
else
730734
COMPAT_CFLAGS += -D_USE_32BIT_TIME_T
731735
BASIC_LDFLAGS += -Wl,--large-address-aware

0 commit comments

Comments
 (0)