From b2ab8b4ba7ffa270aba7a5eb66b37e47c2b6f6ae Mon Sep 17 00:00:00 2001 From: proller Date: Mon, 17 Dec 2018 13:04:49 +0000 Subject: [PATCH] Fux build on arm/clang --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0faf6f7ad3f..11bc21e62ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,7 +127,10 @@ endif () include (cmake/test_cpu.cmake) -option (ARCH_NATIVE "Enable -march=native compiler flag" ${ARCH_ARM}) +if(NOT COMPILER_CLANG) # clang: error: the clang compiler does not support '-march=native' + option(ARCH_NATIVE "Enable -march=native compiler flag" ${ARCH_ARM}) +endif() + if (ARCH_NATIVE) set (COMPILER_FLAGS "${COMPILER_FLAGS} -march=native") endif ()