diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 5629261973e7..44186494ecf8 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -177,6 +177,7 @@ set(ARROW_DOC_DIR "share/doc/${PROJECT_NAME}") set(BUILD_SUPPORT_DIR "${CMAKE_SOURCE_DIR}/build-support") set(ARROW_LLVM_VERSIONS + "22.1" "21.1" "20.1" "19.1" diff --git a/cpp/src/gandiva/engine.cc b/cpp/src/gandiva/engine.cc index cc10eb352dbd..901421c86cb3 100644 --- a/cpp/src/gandiva/engine.cc +++ b/cpp/src/gandiva/engine.cc @@ -72,7 +72,11 @@ #if LLVM_VERSION_MAJOR >= 14 # include # include -# include +# if LLVM_VERSION_MAJOR >= 22 +# include +# else +# include +# endif # include # include # include