From 1787d9624d2e6d1dcc10b1509ac724ad36bef345 Mon Sep 17 00:00:00 2001 From: Zentrik Date: Sat, 21 Sep 2024 10:07:15 +0100 Subject: [PATCH] Don't build MLIRExecutionEngineShared on Windows It doesn't currently build on windows, see https://github.com/llvm/llvm-project/issues/106859. --- 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 a091944b9ee7d..81ebc05e9eba5 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)) # Build a shared library for the execution engine. Some downstream projects # use this library to build their own CPU runners while preserving dynamic # linkage.