mirror of https://github.com/llvm/torch-mlir
Specify Python3_EXECUTABLE explicitly.
Otherwise `MLIR_BINDINGS_PYTHON_ENABLED=ON` won't work.pull/147/head
parent
6351474382
commit
2549d00d8c
|
@ -105,6 +105,7 @@ cmake -GNinja \
|
||||||
"-DNPCOMP_USE_SPLIT_DWARF=ON" \
|
"-DNPCOMP_USE_SPLIT_DWARF=ON" \
|
||||||
"-DCMAKE_CXX_FLAGS_DEBUG=$DEBUG_FLAGS" \
|
"-DCMAKE_CXX_FLAGS_DEBUG=$DEBUG_FLAGS" \
|
||||||
"-DPYTHON_EXECUTABLE=$python_exe" \
|
"-DPYTHON_EXECUTABLE=$python_exe" \
|
||||||
|
"-DPython3_EXECUTABLE=$python_exe" \
|
||||||
"-DMLIR_DIR=$install_mlir/lib/cmake/mlir" \
|
"-DMLIR_DIR=$install_mlir/lib/cmake/mlir" \
|
||||||
"-DLLVM_EXTERNAL_LIT=$LLVM_LIT" \
|
"-DLLVM_EXTERNAL_LIT=$LLVM_LIT" \
|
||||||
"-DLLVM_ENABLE_WARNINGS=ON" \
|
"-DLLVM_ENABLE_WARNINGS=ON" \
|
||||||
|
|
|
@ -67,6 +67,7 @@ cmake -GNinja \
|
||||||
"-B$build_mlir" \
|
"-B$build_mlir" \
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE \
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE \
|
||||||
"-DPYTHON_EXECUTABLE=$python_exe" \
|
"-DPYTHON_EXECUTABLE=$python_exe" \
|
||||||
|
"-DPython3_EXECUTABLE=$python_exe" \
|
||||||
-DLLVM_BUILD_LLVM_DYLIB=ON \
|
-DLLVM_BUILD_LLVM_DYLIB=ON \
|
||||||
-DLLVM_LINK_LLVM_DYLIB=ON \
|
-DLLVM_LINK_LLVM_DYLIB=ON \
|
||||||
-DLLVM_INSTALL_UTILS=ON \
|
-DLLVM_INSTALL_UTILS=ON \
|
||||||
|
|
Loading…
Reference in New Issue