From 03a58d36da41e3e230eaeeee84fecb9267f975f6 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 29 Sep 2024 04:55:53 +0300 Subject: [PATCH] Do not attempt to link in intel JIT events --- 3rdparty/llvm/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty/llvm/CMakeLists.txt b/3rdparty/llvm/CMakeLists.txt index ed28aa576f..d4577cbfa8 100644 --- a/3rdparty/llvm/CMakeLists.txt +++ b/3rdparty/llvm/CMakeLists.txt @@ -68,7 +68,7 @@ if(WITH_LLVM) set(LLVM_TARGETS_TO_BUILD "X86" CACHE STRING "Semicolon-separated list of targets to build, or \"all\".") endif() endif() - if((WIN32 AND BUILD_LLVM) OR CMAKE_SYSTEM_NAME STREQUAL "Linux") + if((WIN32 AND BUILD_LLVM) OR (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND COMPILER_X86)) list (APPEND LLVM_ADDITIONAL_LIBS IntelJITEvents) endif() if(CMAKE_SYSTEM_NAME STREQUAL "Linux")