diff --git a/clang_archive_hashes/clang+llvm-7.0.0-aarch64-linux-gnu.tar.xz.SHA256 b/clang_archive_hashes/clang+llvm-7.0.0-aarch64-linux-gnu.tar.xz.SHA256 new file mode 100644 index 000000000..4a62842e1 --- /dev/null +++ b/clang_archive_hashes/clang+llvm-7.0.0-aarch64-linux-gnu.tar.xz.SHA256 @@ -0,0 +1 @@ +bd962b32818f8b07ae60e708f736eca5cd856f0d34ed9d1038cc9e0991390217 \ No newline at end of file diff --git a/clang_archive_hashes/clang+llvm-7.0.0-armv7a-linux-gnueabihf.tar.xz.SHA256 b/clang_archive_hashes/clang+llvm-7.0.0-armv7a-linux-gnueabihf.tar.xz.SHA256 new file mode 100644 index 000000000..d2240d8df --- /dev/null +++ b/clang_archive_hashes/clang+llvm-7.0.0-armv7a-linux-gnueabihf.tar.xz.SHA256 @@ -0,0 +1 @@ +2d831636d54ff7a3225a3a52f05b8723110e71fa982de1fa55c9fed307ec8aca \ No newline at end of file diff --git a/cmake/DownloadAndExtractClang.cmake b/cmake/DownloadAndExtractClang.cmake index e504a6e97..62e6d3549 100644 --- a/cmake/DownloadAndExtractClang.cmake +++ b/cmake/DownloadAndExtractClang.cmake @@ -27,6 +27,12 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL Linux) set(CLANG_ARCHIVE_NAME clang+llvm-${CLANG_VERSION}-x86_64-linux-gnu-ubuntu-16.04) endif() + message(${CMAKE_HOST_SYSTEM_PROCESSOR}) + if (${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "aarch64") + set(CLANG_ARCHIVE_NAME clang+llvm-${CLANG_VERSION}-aarch64-linux-gnu) + elseif (${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "armv7l") + set(CLANG_ARCHIVE_NAME clang+llvm-${CLANG_VERSION}-armv7a-linux-gnueabihf) + endif() endif() elseif(${CMAKE_SYSTEM_NAME} STREQUAL Darwin)