Skip to content

Commit

Permalink
[CI] Update CMake flag to enable building MLIR Python bindings. (llvm…
Browse files Browse the repository at this point in the history
…#1156)

This flag has been renamed upstream.
  • Loading branch information
mikeurbach authored May 26, 2021
1 parent 38d413a commit 40ee986
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/nightlyIntegrationTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ jobs:
uses: actions/cache@v2
with:
path: llvm
key: ${{ runner.os }}-llvm-sharedlibs-python-${{ steps.get-llvm-hash.outputs.hash }}
key: ${{ runner.os }}-llvm-python-${{ steps.get-llvm-hash.outputs.hash }}

# Build LLVM if we didn't hit in the cache.
- name: Rebuild and Install LLVM
if: steps.cache-llvm.outputs.cache-hit != 'true'
run: utils/build-llvm.sh build install Release -DMLIR_BINDINGS_PYTHON_ENABLED=ON
run: utils/build-llvm.sh build install Release -DMLIR_ENABLE_BINDINGS_PYTHON=ON

# Build CIRCT and run its tests using a Docker container with all the
# integration testing prerequisite installed.
Expand Down Expand Up @@ -92,12 +92,12 @@ jobs:
uses: actions/cache@v2
with:
path: llvm
key: ${{ runner.os }}-llvm-sharedlibs-python-${{ steps.get-llvm-hash.outputs.hash }}
key: ${{ runner.os }}-llvm-python-${{ steps.get-llvm-hash.outputs.hash }}

# Build LLVM if we didn't hit in the cache.
- name: Rebuild and Install LLVM
if: steps.cache-llvm.outputs.cache-hit != 'true'
run: utils/build-llvm.sh build install Release -DMLIR_BINDINGS_PYTHON_ENABLED=ON
run: utils/build-llvm.sh build install Release -DMLIR_ENABLE_BINDINGS_PYTHON=ON

# --------
# Build and test CIRCT
Expand Down
2 changes: 1 addition & 1 deletion docs/PythonBindings.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ If you are mainly interested in using CIRCT from Python scripts, you need to com

```
# in the LLVM/MLIR build directory
cmake [...] -DMLIR_BINDINGS_PYTHON_ENABLED=ON
cmake [...] -DMLIR_ENABLE_BINDINGS_PYTHON=ON
# in the CIRCT build directory
cmake [...] -DCIRCT_BINDINGS_PYTHON_ENABLED=ON
Expand Down

0 comments on commit 40ee986

Please sign in to comment.