Skip to content

Commit 7dab1af

Browse files
committed
add builtin
1 parent 7823e6b commit 7dab1af

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

mlir/examples/standalone/python/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ add_mlir_python_common_capi_library(StandalonePythonCAPI
5757
# available.
5858
MLIRPythonExtension.RegisterEverything
5959
MLIRPythonSources.Core
60+
MLIRPythonSources.Dialects.builtin
6061
)
6162

6263
################################################################################
@@ -72,6 +73,7 @@ add_mlir_python_modules(StandalonePythonModules
7273
# available.
7374
MLIRPythonExtension.RegisterEverything
7475
MLIRPythonSources.Core
76+
MLIRPythonSources.Dialects.builtin
7577
COMMON_CAPI_LINK_LIBS
7678
StandalonePythonCAPI
7779
)

mlir/test/Examples/standalone/test.toy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
# RUN: -DLLVM_USE_LINKER=%llvm_use_linker \
55
# RUN: -DPython3_EXECUTABLE=%python \
66
# RUN: -DPython_EXECUTABLE=%python
7-
# RUN: "%cmake_exe" --build . --target check-standalone | tee %t | FileCheck %s || cat %t && false
7+
# RUN: "%cmake_exe" --build . --target check-standalone | tee %t
8+
# RUN: FileCheck --input-file=%t %s
89

910
# Note: The number of checked tests is not important. The command will fail
1011
# if any fail.
1112
# CHECK: Passed
13+
# CHECK-NOT: Failed
1214
# UNSUPPORTED: target={{.*(windows|android).*}}

0 commit comments

Comments
 (0)