From 1568366d9ccd64d292b55f1ef99c0229c789e9b5 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Tue, 1 Oct 2024 14:33:06 +0300 Subject: [PATCH] Do not link intel JIT events when compiling LLVM for ARM64 --- 3rdparty/llvm/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/3rdparty/llvm/CMakeLists.txt b/3rdparty/llvm/CMakeLists.txt index d4577cbfa8..780d3412c4 100644 --- a/3rdparty/llvm/CMakeLists.txt +++ b/3rdparty/llvm/CMakeLists.txt @@ -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()