[Mlir-commits] [mlir] [MLIR] enable Standalone for Windows (PR #158183)
Maksim Levental
llvmlistbot at llvm.org
Thu Sep 11 20:54:22 PDT 2025
https://github.com/makslevental created https://github.com/llvm/llvm-project/pull/158183
None
>From e392222d8be81436d8c1d5ecc4ec89a14e21a5bb Mon Sep 17 00:00:00 2001
From: Maksim Levental <maksim.levental at gmail.com>
Date: Thu, 11 Sep 2025 22:01:35 -0500
Subject: [PATCH] [MLIR] enable Standalone for Windows
---
mlir/examples/standalone/CMakeLists.txt | 4 +++-
mlir/examples/standalone/test/CMakeLists.txt | 4 +++-
mlir/test/Examples/standalone/test.toy | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/mlir/examples/standalone/CMakeLists.txt b/mlir/examples/standalone/CMakeLists.txt
index 88dfa3e5d57a3..03627c0c10496 100644
--- a/mlir/examples/standalone/CMakeLists.txt
+++ b/mlir/examples/standalone/CMakeLists.txt
@@ -60,5 +60,7 @@ if(MLIR_ENABLE_BINDINGS_PYTHON)
endif()
add_subdirectory(test)
add_subdirectory(standalone-opt)
-add_subdirectory(standalone-plugin)
+if(NOT WIN32)
+ add_subdirectory(standalone-plugin)
+endif()
add_subdirectory(standalone-translate)
diff --git a/mlir/examples/standalone/test/CMakeLists.txt b/mlir/examples/standalone/test/CMakeLists.txt
index fdde159064287..8864563df8a33 100644
--- a/mlir/examples/standalone/test/CMakeLists.txt
+++ b/mlir/examples/standalone/test/CMakeLists.txt
@@ -14,8 +14,10 @@ set(STANDALONE_TEST_DEPENDS
standalone-capi-test
standalone-opt
standalone-translate
- StandalonePlugin
)
+if(NOT WIN32)
+ list(APPEND STANDALONE_TEST_DEPENDS StandalonePlugin)
+endif()
if(MLIR_ENABLE_BINDINGS_PYTHON)
list(APPEND STANDALONE_TEST_DEPENDS StandalonePythonModules)
endif()
diff --git a/mlir/test/Examples/standalone/test.toy b/mlir/test/Examples/standalone/test.toy
index e99bab5f0affc..7879f8782ef06 100644
--- a/mlir/test/Examples/standalone/test.toy
+++ b/mlir/test/Examples/standalone/test.toy
@@ -11,4 +11,4 @@
# if any fail.
# CHECK: Passed
# CHECK-NOT: Failed
-# UNSUPPORTED: target={{.*(windows|android).*}}
+# UNSUPPORTED: target={{.*(android).*}}
More information about the Mlir-commits
mailing list