arm64-linux-gcc.cmake 562 B

12345678910111213141516171819
  1. if (NOT DRACO_CMAKE_TOOLCHAINS_ARM64_LINUX_GCC_CMAKE_)
  2. set(DRACO_CMAKE_TOOLCHAINS_ARM64_LINUX_GCC_CMAKE_ 1)
  3. set(CMAKE_SYSTEM_NAME "Linux")
  4. if ("${CROSS}" STREQUAL "")
  5. # Default the cross compiler prefix to something known to work.
  6. set(CROSS aarch64-linux-gnu-)
  7. endif ()
  8. set(CMAKE_C_COMPILER ${CROSS}gcc)
  9. set(CMAKE_CXX_COMPILER ${CROSS}g++)
  10. set(AS_EXECUTABLE ${CROSS}as)
  11. set(CMAKE_C_COMPILER_ARG1 "-march=armv8-a")
  12. set(CMAKE_CXX_COMPILER_ARG1 "-march=armv8-a")
  13. set(CMAKE_SYSTEM_PROCESSOR "arm64")
  14. endif () # DRACO_CMAKE_TOOLCHAINS_ARM64_LINUX_GCC_CMAKE_