This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
ScriptCraft/scriptcraft/cmake/linux-arm64-toolchain.cmake
TheBrokenRail 0e3b0cbc87
Some checks failed
ScriptCraft/pipeline/head There was a failure building this commit
Use Composite Builds
2020-05-31 13:25:16 -04:00

12 lines
277 B
CMake

set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR aarch64)
set(BUILD_TARGET "aarch64-linux-gnu")
set(CMAKE_SYSROOT "/usr/${BUILD_TARGET}")
set(CMAKE_C_COMPILER clang)
add_compile_options(-target ${BUILD_TARGET})
add_link_options(-fuse-ld=lld -target ${BUILD_TARGET})