Support new LLVM, fix max version.

This commit is contained in:
Christoffer Lerno
2025-02-04 23:03:02 +01:00
parent 07be4b0e06
commit d05cc991f5

View File

@@ -84,7 +84,7 @@ if (NOT WIN32)
endif()
if(C3_WITH_LLVM)
if (NOT C3_LLVM_VERSION STREQUAL "auto")
if (${C3_LLVM_VERSION} VERSION_LESS 17 OR ${C3_LLVM_VERSION} VERSION_GREATER 20)
if (${C3_LLVM_VERSION} VERSION_LESS 17 OR ${C3_LLVM_VERSION} VERSION_GREATER 21)
message(FATAL_ERROR "LLVM ${C3_LLVM_VERSION} is not supported!")
endif()
endif()