Skip to content

Commit 50aae65

Browse files
committed
fall back to 'LLVM' target if LLVM-C is unavailable
1 parent aa92c82 commit 50aae65

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/frontends/llvm/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ target_compile_definitions(shady_fe_llvm PRIVATE "LLVM_VERSION_MAJOR=${LLVM_VERS
1111
if (TARGET LLVM-C)
1212
message("LLVM-C shared library target exists, major version = ${LLVM_VERSION_MAJOR}")
1313
target_link_libraries(shady_fe_llvm PRIVATE LLVM-C)
14+
elseif (TARGET LLVM)
15+
message("LLVM shared library target exists, major version = ${LLVM_VERSION_MAJOR}")
16+
target_link_libraries(shady_fe_llvm PRIVATE LLVM)
1417
else ()
15-
message(FATAL_ERROR "Failed to find LLVM-C target, but found LLVM module earlier")
18+
message(FATAL_ERROR "Failed to find LLVM-C target, but found LLVM module earlier")
1619
endif()
1720

1821
target_link_libraries(shady_fe_llvm PRIVATE api common shady)

0 commit comments

Comments
 (0)