Skip to content

Commit

Permalink
Add -DPython_FIND_VIRTUALENV=ONLY to cmake configure instructions
Browse files Browse the repository at this point in the history
Required because `externals/llvm-project/mlir/cmake/modules/MLIRDetectPythonEnv.cmake` also looks for `Python` other than `Python3`.
  • Loading branch information
giacs-epic authored Feb 13, 2025
1 parent aa74936 commit 79c069e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ cmake -GNinja -Bbuild \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_ASSERTIONS=ON \
-DPython3_FIND_VIRTUALENV=ONLY \
-DPython_FIND_VIRTUALENV=ONLY \
-DLLVM_ENABLE_PROJECTS=mlir \
-DLLVM_EXTERNAL_PROJECTS="torch-mlir" \
-DLLVM_EXTERNAL_TORCH_MLIR_SOURCE_DIR="$PWD" \
Expand Down

0 comments on commit 79c069e

Please sign in to comment.