MINGW-packages/mingw-w64-mlir/0003-Fix-build-MLIRExecutionEngineShared.patch
مهدي شينون (Mehdi Chinoune) 4f670a8987 mlir: update to 20.1.0
I ended up disabling `mlir-pdll-lsp-server` on clang environments because of missing symbols.
MLIR doesn't implement exporting symbols.
2025-03-05 15:27:40 +01:00

22 lines
659 B
Diff

--- a/lib/ExecutionEngine/CMakeLists.txt
+++ b/lib/ExecutionEngine/CMakeLists.txt
@@ -102,7 +102,7 @@
MLIRTargetLLVMIRExport
)
-if(LLVM_BUILD_LLVM_DYLIB AND NOT (WIN32 OR MINGW OR CYGWIN)) # Does not build on windows currently, see #106859
+if(LLVM_BUILD_LLVM_DYLIB AND NOT (MSVC 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.
@@ -122,6 +122,9 @@
LINK_LIBS PUBLIC
LLVM
MLIR
+ MLIRSupport
+ MLIRIR
+ MLIRTargetLLVMIRExport
)
endif()