Move the llvm components to the main cmake file

This commit is contained in:
Sameer Rahmani 2022-06-15 23:13:49 +01:00
parent 64f0b31b81
commit 266f16079f
1 changed files with 12 additions and 3 deletions

View File

@ -217,9 +217,18 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
link_directories(${LLVM_BUILD_LIBRARY_DIR})
add_definitions(${LLVM_DEFINITIONS})
llvm_map_components_to_libnames(llvm_libs "all")
message(STATUS "....... ${llvm_libs}")
message(STATUS ${llvm_libs})
execute_process(COMMAND llvm-config --components
OUTPUT_VARIABLE llvm_components)
llvm_map_components_to_libnames(llvm_libs
core
support
jitlink
orcjit
aarch64asmparser
aarch64codegen
x86asmparser
x86codegen)
# Serene Setup ===================================