Skip to content

Commit 7f1e69f

Browse files
committed
fix standalone
1 parent 497989f commit 7f1e69f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

mlir/examples/standalone/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ add_subdirectory(include)
5252
add_subdirectory(lib)
5353
if(MLIR_ENABLE_BINDINGS_PYTHON)
5454
message(STATUS "Enabling Python API")
55+
include(MLIRDetectPythonEnv)
56+
mlir_configure_python_dev_packages()
5557
set(MLIR_PYTHON_PACKAGE_PREFIX "mlir_standalone" CACHE STRING "" FORCE)
5658
set(MLIR_BINDINGS_PYTHON_INSTALL_PREFIX "python_packages/standalone/mlir_standalone" CACHE STRING "" FORCE)
5759
add_subdirectory(python)

mlir/test/Examples/standalone/test.toy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# RUN: -DCMAKE_CXX_COMPILER=%host_cxx -DCMAKE_C_COMPILER=%host_cc \
33
# RUN: -DLLVM_ENABLE_LIBCXX=%enable_libcxx -DMLIR_DIR=%mlir_cmake_dir \
44
# RUN: -DLLVM_USE_LINKER=%llvm_use_linker \
5-
# RUN: -DPython3_EXECUTABLE=%python
5+
# RUN: -DPython3_EXECUTABLE=%python \
6+
# RUN: -DPython_EXECUTABLE=%python
67
# RUN: "%cmake_exe" --build . --target check-standalone | tee %t | FileCheck %s
78

89
# Note: The number of checked tests is not important. The command will fail

0 commit comments

Comments
 (0)