Skip to content

Commit 4f6151b

Browse files
committed
fix: add target-specific CFLAGS for cross-compilation
- Add CFLAGS_aarch64_unknown_linux_gnu for manylinux aarch64 builds - Add CFLAGS_armv7_unknown_linux_gnueabihf for manylinux armv7 builds - Add CFLAGS_aarch64_unknown_linux_musl for musllinux aarch64 builds - Add CFLAGS_armv7_unknown_linux_musleabihf for musllinux armv7 builds The generic CFLAGS was not being passed to the cross-compiler in the Docker container. Using target-specific environment variables ensures the flags are properly applied during cross-compilation.
1 parent adbe9d4 commit 4f6151b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/pypi.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
manylinux: auto
4040
env:
4141
CFLAGS: "-Wno-error"
42+
CFLAGS_aarch64_unknown_linux_gnu: "-Wno-error"
43+
CFLAGS_armv7_unknown_linux_gnueabihf: "-Wno-error"
4244
- name: Upload wheels
4345
uses: actions/upload-artifact@v6
4446
with:
@@ -70,6 +72,8 @@ jobs:
7072
manylinux: musllinux_1_2
7173
env:
7274
CFLAGS: "-Wno-error"
75+
CFLAGS_aarch64_unknown_linux_musl: "-Wno-error"
76+
CFLAGS_armv7_unknown_linux_musleabihf: "-Wno-error"
7377
- name: Upload wheels
7478
uses: actions/upload-artifact@v6
7579
with:

0 commit comments

Comments
 (0)