Skip to content

Commit

Permalink
Update GitHub Actions workflow to set CFLAGS and CXXFLAGS for specifi…
Browse files Browse the repository at this point in the history
…c architectures
  • Loading branch information
arnavch committed Jun 20, 2024
1 parent 7d0cb93 commit 567a929
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Set CFLAGS for specific targets
- name: Set CFLAGS and CXXFLAGS for specific targets
run: |
if [[ ${{ matrix.platform.target }} == "ppc64le" || ${{ matrix.platform.target }} == "aarch64" || ${{ matrix.platform.target }} == "armv7" ]]; then
echo "CFLAGS=-std=c99" >> $GITHUB_ENV
echo "CXXFLAGS=-std=c++11" >> $GITHUB_ENV
fi
- name: Build wheels
uses: PyO3/maturin-action@v1
Expand Down

0 comments on commit 567a929

Please sign in to comment.