Updated util/test_llvm_versions.sh script
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
message(STATUS "Checking for LLVM and Clang...")
|
||||
|
||||
if(LLVM_VERSION STREQUAL "18")
|
||||
set(LLVM_VERSION "18.1")
|
||||
endif()
|
||||
|
||||
# If user provided a path to llvm-config executable use it to detect
|
||||
# LLVM Version and appropriate CMake module path
|
||||
if(NOT "${LLVM_CONFIG_PATH}" STREQUAL "")
|
||||
@@ -26,6 +22,10 @@ if(NOT "${LLVM_CONFIG_PATH}" STREQUAL "")
|
||||
set(LLVM_VERSION ${CMAKE_MATCH_1})
|
||||
endif()
|
||||
|
||||
if(LLVM_VERSION STREQUAL "18")
|
||||
set(LLVM_VERSION "18.1")
|
||||
endif()
|
||||
|
||||
find_package(LLVM ${LLVM_VERSION} CONFIG REQUIRED)
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH ${LLVM_CMAKE_DIR})
|
||||
|
||||
Reference in New Issue
Block a user