Skip to content

Commit 6fcb486

Browse files
committed
[device-libs] Allow link to llvm shared library for current distros
Sumbitting on behalf of GitHub user @littlewu2508
1 parent b24b984 commit 6fcb486

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

amd/device-libs/utils/prepare-builtins/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,11 @@ set_target_properties(prepare-builtins PROPERTIES
2626
CXX_STANDARD_REQUIRED Yes
2727
CXX_EXTENSIONS No)
2828
llvm_update_compile_flags(prepare-builtins)
29-
llvm_map_components_to_libnames(llvm_libs support core bitreader bitwriter)
29+
30+
if (LLVM_LINK_LLVM_DYLIB)
31+
set(llvm_libs LLVM)
32+
else()
33+
llvm_map_components_to_libnames(llvm_libs support core bitreader bitwriter)
34+
endif()
35+
3036
target_link_libraries(prepare-builtins ${llvm_libs})

0 commit comments

Comments
 (0)