toolchain.cmake 597 B

12345678910111213141516171819
  1. set(CMAKE_SYSTEM_NAME Windows)
  2. set(CMAKE_SYSTEM_PROCESSOR aarch64)
  3. set(CMAKE_SYSTEM_VERSION 10.0.22621.2428)
  4. set(triple aarch64-w64-mingw32)
  5. set(CMAKE_C_COMPILER ${triple}-clang)
  6. set(CMAKE_CXX_COMPILER ${triple}-clang++)
  7. set(CMAKE_RC_COMPILER ${triple}-windres)
  8. set(CMAKE_RANLIB ${triple}-llvm-ranlib)
  9. set(CMAKE_AR ${triple}-llvm-ar)
  10. set(CMAKE_SYSROOT /opt/llvm-mingw/${triple})
  11. set(CMAKE_FIND_ROOT_PATH /opt/llvm-mingw /opt/llvm-mingw/${triple} /opt/ffbuild)
  12. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  13. set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  14. set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)