[Mlir-commits] [mlir] 04df971 - [mlir][standalone] Specify python path when configuring
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Sep 20 12:43:47 PDT 2022
Author: rkayaith
Date: 2022-09-20T15:43:39-04:00
New Revision: 04df971d65a769d7c03fa69c01a4d302169fdc72
URL: https://github.com/llvm/llvm-project/commit/04df971d65a769d7c03fa69c01a4d302169fdc72
DIFF: https://github.com/llvm/llvm-project/commit/04df971d65a769d7c03fa69c01a4d302169fdc72.diff
LOG: [mlir][standalone] Specify python path when configuring
Specifying the python path here ensures that the python binary used matches the
one used by the main MLIR tests. This is useful when cmake's automatic detection
has to be overridden.
Reviewed By: stellaraccident, bondhugula
Differential Revision: https://reviews.llvm.org/D134251
Added:
Modified:
mlir/test/Examples/standalone/test.toy
Removed:
################################################################################
diff --git a/mlir/test/Examples/standalone/test.toy b/mlir/test/Examples/standalone/test.toy
index 0e2c16de27881..3f5c5cbbb00de 100644
--- a/mlir/test/Examples/standalone/test.toy
+++ b/mlir/test/Examples/standalone/test.toy
@@ -1,7 +1,8 @@
# RUN: %cmake_exe %mlir_src_root/examples/standalone -G "%cmake_generator" \
# RUN: -DCMAKE_CXX_COMPILER=%host_cxx -DCMAKE_C_COMPILER=%host_cc \
# RUN: -DLLVM_ENABLE_LIBCXX=%enable_libcxx -DMLIR_DIR=%mlir_cmake_dir \
-# RUN: -DLLVM_USE_LINKER=%llvm_use_linker
+# RUN: -DLLVM_USE_LINKER=%llvm_use_linker \
+# RUN: -DPython3_EXECUTABLE=%python
# RUN: %cmake_exe --build . --target check-standalone | tee %t | FileCheck %s
# Note: The number of checked tests is not important. The command will fail
More information about the Mlir-commits
mailing list