diff --git a/3rdparty/llvm.cmake b/3rdparty/llvm.cmake index 31032b3d4f..c0c8cd5280 100644 --- a/3rdparty/llvm.cmake +++ b/3rdparty/llvm.cmake @@ -61,7 +61,11 @@ if(WITH_LLVM) endif() endif() - set(LLVM_LIBS LLVMMCJIT LLVMX86CodeGen LLVMX86AsmParser LLVMIntelJITEvents) + set(LLVM_LIBS LLVMMCJIT LLVMX86CodeGen LLVMX86AsmParser) + + if(WIN32 OR CMAKE_SYSTEM MATCHES "Linux") + set(LLVM_LIBS ${LLVM_LIBS} LLVMIntelJITEvents) + endif() if(CMAKE_SYSTEM MATCHES "Linux") set(LLVM_LIBS ${LLVM_LIBS} LLVMPerfJITEvents)