File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ set(ARROW_DOC_DIR "share/doc/${PROJECT_NAME}")
177177set (BUILD_SUPPORT_DIR "${CMAKE_SOURCE_DIR} /build-support" )
178178
179179set (ARROW_LLVM_VERSIONS
180+ "21.1"
180181 "20.1"
181182 "19.1"
182183 "18.1"
Original file line number Diff line number Diff line change @@ -202,10 +202,16 @@ Status UseJITLinkIfEnabled(llvm::orc::LLJITBuilder& jit_builder) {
202202 static auto maybe_use_jit_link = ::arrow::internal::GetEnvVar (" GANDIVA_USE_JIT_LINK" );
203203 if (maybe_use_jit_link.ok ()) {
204204 ARROW_ASSIGN_OR_RAISE (static auto memory_manager, CreateMemmoryManager ());
205+ # if LLVM_VERSION_MAJOR >= 21
206+ jit_builder.setObjectLinkingLayerCreator ([&](llvm::orc::ExecutionSession& ES) {
207+ return std::make_unique<llvm::orc::ObjectLinkingLayer>(ES, *memory_manager);
208+ });
209+ # else
205210 jit_builder.setObjectLinkingLayerCreator (
206211 [&](llvm::orc::ExecutionSession& ES, const llvm::Triple& TT) {
207212 return std::make_unique<llvm::orc::ObjectLinkingLayer>(ES, *memory_manager);
208213 });
214+ # endif
209215 }
210216 return Status::OK ();
211217}
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class GANDIVA_EXPORT LLVMTypes {
5656 llvm::Type* double_type () { return llvm::Type::getDoubleTy (context_); }
5757
5858 llvm::PointerType* ptr_type (llvm::Type* type) {
59- return llvm::PointerType::get (type , 0 );
59+ return llvm::PointerType::get (context_ , 0 );
6060 }
6161
6262 llvm::PointerType* i8_ptr_type () { return ptr_type (i8_type ()); }
You can’t perform that action at this time.
0 commit comments