Modify the minimum version of the Clang compiler that Clickhouse can support (8 -> 9),

The main reason is that in Clang 8.0 "#pragma clang attribute" cannot be used in the namesapce scope.
This commit is contained in:
Simon Liu 2020-09-16 22:14:30 +08:00
parent 97baa67f2b
commit c41e230589

View File

@ -28,7 +28,7 @@ elseif (COMPILER_CLANG)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fchar8_t")
endif ()
else ()
set (CLANG_MINIMUM_VERSION 8)
set (CLANG_MINIMUM_VERSION 9)
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS ${CLANG_MINIMUM_VERSION})
message (FATAL_ERROR "Clang version must be at least ${CLANG_MINIMUM_VERSION}.")
endif ()