Skip to content

Commit 7f300cf

Browse files
committed
frontends/llvm: use LLVM-C target
1 parent 7ec6c7e commit 7f300cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/frontends/llvm/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ separate_arguments(LLVM_DEFINITIONS_LIST NATIVE_COMMAND ${LLVM_DEFINITIONS})
88
add_definitions(${LLVM_DEFINITIONS_LIST})
99
target_compile_definitions(shady_fe_llvm PRIVATE "LLVM_VERSION_MAJOR=${LLVM_VERSION_MAJOR}")
1010

11-
if (TARGET LLVM)
12-
message("LLVM shared library target exists, major version = ${LLVM_VERSION_MAJOR}")
13-
target_link_libraries(shady_fe_llvm PRIVATE LLVM)
11+
if (TARGET LLVM-C)
12+
message("LLVM-C shared library target exists, major version = ${LLVM_VERSION_MAJOR}")
13+
target_link_libraries(shady_fe_llvm PRIVATE LLVM-C)
1414
else ()
15-
message(FATAL_ERROR "Failed to find LLVM target, but found LLVM module earlier")
15+
message(FATAL_ERROR "Failed to find LLVM-C target, but found LLVM module earlier")
1616
endif()
1717

1818
target_link_libraries(shady_fe_llvm PRIVATE api common shady)

0 commit comments

Comments
 (0)