We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3c5cda commit 4cfdfeeCopy full SHA for 4cfdfee
src/wamrc/CMakeLists.txt
@@ -123,6 +123,14 @@ else()
123
endif()
124
125
find_package(LLVM CONFIG)
126
+if (LLVM_FOUND)
127
+ if (LLVM_PACKAGE_VERSION VERSION_LESS 13.0)
128
+ message(STATUS "Outdated LLVM ${LLVM_PACKAGE_VERSION} is found. WAMRC won't be built.")
129
+ set(LLVM_FOUND 0)
130
+ endif()
131
+else()
132
+ message(STATUS "LLVM is not found. WAMRC won't be built.")
133
+endif()
134
if (LLVM_FOUND)
135
include_directories(${LLVM_INCLUDE_DIRS})
136
add_definitions(${LLVM_DEFINITIONS})
@@ -199,6 +207,4 @@ if (LLVM_FOUND)
199
207
install(FILES $<TARGET_PDB_FILE:flb-wamrc-bin>
200
208
DESTINATION "${FLB_INSTALL_BINDIR}")
201
209
202
-else()
203
- message(STATUS "LLVM is not found. WAMRC won't be built.")
204
210
endif ()
0 commit comments