Skip to content

Commit

Permalink
Fix bindings environment variable LLVM
Browse files Browse the repository at this point in the history
  • Loading branch information
fzakaria committed Jan 15, 2024
1 parent 81b5af9 commit cdd6df2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publishWheelRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
./build_tools/github_actions/ci_build_cmake_llvm.sh "$LLVM_PROJECT_DIR" "$LLVM_BUILD_DIR"
env:
CMAKE_BUILD_TYPE: Release
LLVM_ENABLE_BINDINGS: ON
MLIR_ENABLE_BINDINGS_PYTHON: ON

- name: Build and Test StableHLO with Python
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions build_tools/github_actions/ci_build_cmake_llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ LLVM_SRC_DIR="$1"
LLVM_BUILD_DIR="$2"

CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:-RelWithDebInfo}"
LLVM_ENABLE_BINDINGS="${LLVM_ENABLE_BINDINGS:-OFF}"
MLIR_ENABLE_BINDINGS_PYTHON="${MLIR_ENABLE_BINDINGS_PYTHON:-OFF}"

# Configure LLVM
cmake -GNinja \
Expand All @@ -37,7 +37,7 @@ cmake -GNinja \
-DLLVM_ENABLE_PROJECTS=mlir \
-DLLVM_TARGETS_TO_BUILD=host \
-DLLVM_INCLUDE_TOOLS=ON \
-DLLVM_ENABLE_BINDINGS="$LLVM_ENABLE_BINDINGS" \
-DMLIR_ENABLE_BINDINGS_PYTHON="$MLIR_ENABLE_BINDINGS_PYTHON" \
-DLLVM_BUILD_TOOLS=OFF \
-DLLVM_INCLUDE_TESTS=OFF \
-DCMAKE_BUILD_TYPE="$CMAKE_BUILD_TYPE" \
Expand Down

0 comments on commit cdd6df2

Please sign in to comment.