From 2549d00d8ca5fda173a26073ebb760329dc327b8 Mon Sep 17 00:00:00 2001 From: Sean Silva Date: Wed, 20 Jan 2021 18:07:04 -0800 Subject: [PATCH] Specify Python3_EXECUTABLE explicitly. Otherwise `MLIR_BINDINGS_PYTHON_ENABLED=ON` won't work. --- build_tools/cmake_configure.sh | 1 + build_tools/install_mlir.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/build_tools/cmake_configure.sh b/build_tools/cmake_configure.sh index 900d8a104..78fc3c2f8 100755 --- a/build_tools/cmake_configure.sh +++ b/build_tools/cmake_configure.sh @@ -105,6 +105,7 @@ cmake -GNinja \ "-DNPCOMP_USE_SPLIT_DWARF=ON" \ "-DCMAKE_CXX_FLAGS_DEBUG=$DEBUG_FLAGS" \ "-DPYTHON_EXECUTABLE=$python_exe" \ + "-DPython3_EXECUTABLE=$python_exe" \ "-DMLIR_DIR=$install_mlir/lib/cmake/mlir" \ "-DLLVM_EXTERNAL_LIT=$LLVM_LIT" \ "-DLLVM_ENABLE_WARNINGS=ON" \ diff --git a/build_tools/install_mlir.sh b/build_tools/install_mlir.sh index 6a2660ce5..65d384838 100755 --- a/build_tools/install_mlir.sh +++ b/build_tools/install_mlir.sh @@ -67,6 +67,7 @@ cmake -GNinja \ "-B$build_mlir" \ -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE \ "-DPYTHON_EXECUTABLE=$python_exe" \ + "-DPython3_EXECUTABLE=$python_exe" \ -DLLVM_BUILD_LLVM_DYLIB=ON \ -DLLVM_LINK_LLVM_DYLIB=ON \ -DLLVM_INSTALL_UTILS=ON \