From dae03206c1f4dcf812ff27e2860358ccb933856c Mon Sep 17 00:00:00 2001 From: Zentrik Date: Wed, 9 Oct 2024 20:43:11 +0100 Subject: [PATCH] [MLIR] Don't build MLIRExecutionEngineShared on Windows (#109524) This disabled the build of `MLIRExecutionEngineShared` because this causes linkage issues in windows for currently unknown reasons. Related issue: https://github.com/llvm/llvm-project/issues/106859. (cherry picked from commit 74e1062e34542c6c43293da51ad6e1c7d41ced2c) --- mlir/lib/ExecutionEngine/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/lib/ExecutionEngine/CMakeLists.txt b/mlir/lib/ExecutionEngine/CMakeLists.txt index a091944b9ee7df..7fc17b97f0c56f 100644 --- a/mlir/lib/ExecutionEngine/CMakeLists.txt +++ b/mlir/lib/ExecutionEngine/CMakeLists.txt @@ -97,7 +97,7 @@ add_mlir_library(MLIRExecutionEngine MLIRTargetLLVMIRExport ) -if(LLVM_BUILD_LLVM_DYLIB) +if(LLVM_BUILD_LLVM_DYLIB AND NOT (WIN32 OR MINGW OR CYGWIN)) # Does not build on windows currently, see #106859 # Build a shared library for the execution engine. Some downstream projects # use this library to build their own CPU runners while preserving dynamic # linkage.