Skip to content

Commit

Permalink
allow LLVM 11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wysiwyng committed Jun 26, 2024
1 parent 5e21a38 commit 1d6afb5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions JITImpl/LLVM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,15 @@ IF(NOT DEFINED ENV{Clang_DIR})
SET(ENV{Clang_DIR} $ENV{LLVM_DIR})
ENDIF()

FIND_PACKAGE(LLVM 11 CONFIG QUIET)
IF(NOT LLVM_FOUND)
FIND_PACKAGE(LLVM 11.1 CONFIG QUIET)
ENDIF()

FIND_PACKAGE(LLVM 11 CONFIG)
FIND_PACKAGE(Clang 11 CONFIG)
FIND_PACKAGE(Clang 11 CONFIG QUIET)
IF(NOT Clang_FOUND)
FIND_PACKAGE(Clang 11.1 CONFIG QUIET)
ENDIF()

OPTION(ETISS_LINK_CLANG_DYLIB "Link against the clang dynamic library" ${CLANG_LINK_CLANG_DYLIB})
OPTION(ETISS_LINK_LLVM_DYLIB "Link against the llvm dynamic library" ${LLVM_LINK_LLVM_DYLIB})
Expand Down

0 comments on commit 1d6afb5

Please sign in to comment.