Skip to content

Commit b165e46

Browse files
songqingxhochy
authored andcommitted
ARROW-2675: Fix build error with clang-10 (Apple Clang / LLVM)
As mac os X has been updated to the version 10.13.5, XCode has been updated to XCode 9.4 and Command Line Tools have been updated to the version 10.0, the clang version has also been updated to clang-10 (Apple Clang / LLVM) correspondingly. However, Arrow can only be built under clang-9, as shown in the file https://github.com/apache/arrow/blob/b1d1633c90d20d3cbcbcee9a29c3f057164bb53c/cpp/cmake_modules/CompilerInfo.cmake#L77 So, it's time to update Arrow to support clang-10. Author: songqing <zhangsongqing164@163.com> Closes #2106 from songqing/support_clang-10 and squashes the following commits: 980b41a <songqing> support clang-10
1 parent 0a3bdba commit b165e46

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cpp/cmake_modules/CompilerInfo.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ elseif("${COMPILER_VERSION_FULL}" MATCHES ".*clang-9")
7878
set(COMPILER_FAMILY "clang")
7979
set(COMPILER_VERSION "4.0.0svn")
8080

81+
# clang on Mac OS X, XCode 9.
82+
elseif("${COMPILER_VERSION_FULL}" MATCHES ".*clang-10")
83+
set(COMPILER_FAMILY "clang")
84+
set(COMPILER_VERSION "4.1.0svn")
85+
8186
# gcc
8287
elseif("${COMPILER_VERSION_FULL_LOWER}" MATCHES ".*gcc[ -]version.*")
8388
set(COMPILER_FAMILY "gcc")

0 commit comments

Comments
 (0)