Skip to content

Commit e5baa04

Browse files
committed
ci: set CFLAGS=-std=gnu11 for linux/musllinux wheels
Cross toolchains in manylinux/musllinux containers default to a pre-C99 gcc dialect, breaking tree-sitter-javascript's scanner.c which declares loop variables in the for-init.
1 parent e774547 commit e5baa04

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
python-version: 3.x
4444
- name: Build wheels
4545
uses: PyO3/maturin-action@v1
46+
env:
47+
CFLAGS: "-std=gnu11"
4648
with:
4749
working-directory: sqlshield-py
4850
target: ${{ matrix.platform.target }}
@@ -75,6 +77,8 @@ jobs:
7577
python-version: 3.x
7678
- name: Build wheels
7779
uses: PyO3/maturin-action@v1
80+
env:
81+
CFLAGS: "-std=gnu11"
7882
with:
7983
working-directory: sqlshield-py
8084
target: ${{ matrix.platform.target }}

0 commit comments

Comments
 (0)