Fux build on arm/clang

This commit is contained in:
proller 2018-12-17 13:04:49 +00:00
parent af31ff24b9
commit b2ab8b4ba7

View File

@ -127,7 +127,10 @@ endif ()
include (cmake/test_cpu.cmake) include (cmake/test_cpu.cmake)
if(NOT COMPILER_CLANG) # clang: error: the clang compiler does not support '-march=native'
option(ARCH_NATIVE "Enable -march=native compiler flag" ${ARCH_ARM}) option(ARCH_NATIVE "Enable -march=native compiler flag" ${ARCH_ARM})
endif()
if (ARCH_NATIVE) if (ARCH_NATIVE)
set (COMPILER_FLAGS "${COMPILER_FLAGS} -march=native") set (COMPILER_FLAGS "${COMPILER_FLAGS} -march=native")
endif () endif ()