fix link error on IntelJITEvents

This commit is contained in:
digant 2024-10-09 21:09:30 +02:00
parent fb2aeb40ca
commit 1fde52a1f5

View file

@ -73,10 +73,10 @@ if(WITH_LLVM)
set(LLVM_TARGETS_TO_BUILD "X86" CACHE STRING "Semicolon-separated list of targets to build, or \"all\".")
endif()
endif()
if(LLVM_USE_INTEL_JITEVENTS)
if(LLVM_USE_INTEL_JITEVENTS OR (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND COMPILER_X86))
list (APPEND LLVM_ADDITIONAL_LIBS IntelJITEvents)
endif()
if(LLVM_USE_PERF)
if(LLVM_USE_PERF OR CMAKE_SYSTEM_NAME STREQUAL "Linux")
list (APPEND LLVM_ADDITIONAL_LIBS PerfJITEvents)
endif()
llvm_map_components_to_libnames(LLVM_LIBS