From c41e230589199fc9a7976fe9a1e53a6d083b2152 Mon Sep 17 00:00:00 2001 From: Simon Liu <331435+monadbobo@users.noreply.github.com> Date: Wed, 16 Sep 2020 22:14:30 +0800 Subject: [PATCH] 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. --- cmake/tools.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/tools.cmake b/cmake/tools.cmake index a6ea573a59d..723a14c6584 100644 --- a/cmake/tools.cmake +++ b/cmake/tools.cmake @@ -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 ()