# Windows system layer (task 9), not 1:1: toolchain file for the 32-bit Windows build (i686, llvm-mingw, UCRT). # The shipped game is a 32-bit (ILP32) binary; building i686 keeps pointer/long/size_t widths identical, so the # ported structs keep the layouts of the original (see docs/port/windows.md). # LLVM_MINGW_ROOT (env or -D) = the llvm-mingw directory (contains bin/i686-w64-mingw32-clang++.exe). if(NOT LLVM_MINGW_ROOT) set(LLVM_MINGW_ROOT "$ENV{LLVM_MINGW_ROOT}") endif() file(TO_CMAKE_PATH "${LLVM_MINGW_ROOT}" LLVM_MINGW_ROOT) set(CMAKE_SYSTEM_NAME Windows) set(CMAKE_SYSTEM_PROCESSOR i686) set(CMAKE_C_COMPILER "${LLVM_MINGW_ROOT}/bin/i686-w64-mingw32-clang.exe") set(CMAKE_CXX_COMPILER "${LLVM_MINGW_ROOT}/bin/i686-w64-mingw32-clang++.exe") set(CMAKE_RC_COMPILER "${LLVM_MINGW_ROOT}/bin/i686-w64-mingw32-windres.exe") set(CMAKE_AR "${LLVM_MINGW_ROOT}/bin/llvm-ar.exe" CACHE FILEPATH "") set(CMAKE_RANLIB "${LLVM_MINGW_ROOT}/bin/llvm-ranlib.exe" CACHE FILEPATH "")