[Mlir-commits] [mlir] Don't build MLIRExecutionEngineShared on Windows (PR #109524)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat Sep 21 02:08:37 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: None (Zentrik)

<details>
<summary>Changes</summary>

It doesn't currently build on windows, see https://github.com/llvm/llvm-project/issues/106859.

---
Full diff: https://github.com/llvm/llvm-project/pull/109524.diff


1 Files Affected:

- (modified) mlir/lib/ExecutionEngine/CMakeLists.txt (+1-1) 


``````````diff
diff --git a/mlir/lib/ExecutionEngine/CMakeLists.txt b/mlir/lib/ExecutionEngine/CMakeLists.txt
index a091944b9ee7df..81ebc05e9eba59 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.

``````````

</details>


https://github.com/llvm/llvm-project/pull/109524


More information about the Mlir-commits mailing list