Skip to content

Commit

Permalink
Allow link to llvm shared library for current distros
Browse files Browse the repository at this point in the history
Signed-off-by: "Yiyang Wu <[email protected]>"
  • Loading branch information
littlewu2508 authored and LiXueying0309 committed May 2, 2024
1 parent c013d6b commit 7311c1b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion amd/device-libs/utils/prepare-builtins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,9 @@ set_target_properties(prepare-builtins PROPERTIES
CXX_STANDARD_REQUIRED Yes
CXX_EXTENSIONS No)
llvm_update_compile_flags(prepare-builtins)
llvm_map_components_to_libnames(llvm_libs support core bitreader bitwriter)
if (LLVM_LINK_LLVM_DYLIB)
set(llvm_libs LLVM)
else()
llvm_map_components_to_libnames(llvm_libs support core bitreader bitwriter)
endif()
target_link_libraries(prepare-builtins ${llvm_libs})

0 comments on commit 7311c1b

Please sign in to comment.