Do not link intel JIT events when compiling LLVM for ARM64

This commit is contained in:
kd-11 2024-10-01 14:33:06 +03:00 committed by kd-11
parent 79614562b9
commit 1568366d9c

View File

@ -17,12 +17,14 @@ if(WITH_LLVM)
option(LLVM_CCACHE_BUILD OFF)
set(LLVM_ENABLE_WARNINGS OFF CACHE BOOL "Enable compiler warnings.")
if(WIN32)
if(WIN32 AND COMPILER_X86)
set(LLVM_USE_INTEL_JITEVENTS ON)
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(LLVM_USE_INTEL_JITEVENTS ON)
if(COMPILER_X86)
set(LLVM_USE_INTEL_JITEVENTS ON)
endif()
set(LLVM_USE_PERF ON)
endif()