mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
don't fail if mtune does not return a valid configuration
This commit is contained in:
parent
451d539f1d
commit
6b364021d1
@ -181,12 +181,12 @@ if (CMAKE_COMPILER_IS_GNUCC AND NOT CROSS_COMPILE)
|
||||
INPUT_FILE /dev/null
|
||||
RESULT_VARIABLE GNUCC_TUNE_TEST)
|
||||
if (NOT GNUCC_TUNE_TEST EQUAL 0)
|
||||
message(SEND_ERROR "Something went wrong determining gcc tune: -mtune=${GNUCC_ARCH} not valid")
|
||||
message(WARNING "Something went wrong determining gcc tune: -mtune=${GNUCC_ARCH} not valid, falling back to -mtune=native")
|
||||
set(TUNE_FLAG native)
|
||||
else()
|
||||
set(TUNE_FLAG ${GNUCC_ARCH})
|
||||
message(STATUS "gcc will tune for ${GNUCC_ARCH}")
|
||||
endif()
|
||||
message(STATUS "gcc will tune for ${GNUCC_ARCH}")
|
||||
elseif (CMAKE_COMPILER_IS_CLANG AND NOT CROSS_COMPILE)
|
||||
message(STATUS "clang will tune for ${TUNE_FLAG}")
|
||||
if (ARCH_IA32 OR ARCH_X86_64)
|
||||
|
Loading…
x
Reference in New Issue
Block a user