From c9948aa7b154d09bb580dc942b3745425d8dea18 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sun, 11 May 2025 12:22:27 -0500 Subject: [PATCH] xo-jit: specify llvm-18 in find_package --- xo-jit/src/jit/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xo-jit/src/jit/CMakeLists.txt b/xo-jit/src/jit/CMakeLists.txt index c52f7116..a214d04e 100644 --- a/xo-jit/src/jit/CMakeLists.txt +++ b/xo-jit/src/jit/CMakeLists.txt @@ -13,7 +13,8 @@ set(SELF_SRCS xo_add_shared_library4(${SELF_LIB} ${PROJECT_NAME}Targets ${PROJECT_VERSION} 1 ${SELF_SRCS}) xo_dependency(${SELF_LIB} xo_expression) -find_package(LLVM REQUIRED CONFIG) +# llvm {16,17} api will not build without some retro work +find_package(LLVM 18 REQUIRED CONFIG) message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}") message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}") message(STATUS "LLVM_DIR=${LLVM_DIR}")