CMake: Set CMAKE_AR for MinGW toolchains

Avoids the need for the toolchain to override the system AR.
This commit is contained in:
Billy Laws committed 2025-07-10 00:33:37 +01:00
1 parent d8a4d03501
commit bbf6e8e0c5
1 file changed
+1
+1
View File
@@ -4,6 +4,7 @@ set(CMAKE_RC_COMPILER ${MINGW_TRIPLE}-windres)
set(CMAKE_C_COMPILER ${MINGW_TRIPLE}-clang)
set(CMAKE_CXX_COMPILER ${MINGW_TRIPLE}-clang++)
set(CMAKE_DLLTOOL ${MINGW_TRIPLE}-dlltool)
set(CMAKE_AR ${MINGW_TRIPLE}-ar)
# Compile everything as static to avoid requiring the MinGW runtime libraries, force page aligned sections so that
# debug symbols work correctly, and disable loop alignment to workaround an LLVM bug