Skip to content

Commit ffa8be5

Browse files
committed
Build: Fix abi3 environment variables on ARM.
1 parent d75cf21 commit ffa8be5

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ environment.NM = "gcc-nm"
3737
environment.RANLIB = "gcc-ranlib"
3838
environment.LUPA_WITH_LUA_DLOPEN = "true"
3939

40+
[[tool.cibuildwheel.overrides]]
41+
select = "*aarch64"
42+
environment = {CFLAGS = "-O3 -g1 -pipe -fPIC -flto -march=armv8-a -mtune=cortex-a72", AR = "gcc-ar", NM = "gcc-nm", RANLIB = "gcc-ranlib", LDFLAGS = "-fPIC -flto", LUPA_USE_BUNDLE = "true", LUPA_WITH_LUA_DLOPEN = "true"}
43+
44+
[[tool.cibuildwheel.overrides]]
45+
select = "*armv7l"
46+
environment = {CFLAGS = "-O3 -g1 -pipe -fPIC -flto", AR = "gcc-ar", NM = "gcc-nm", RANLIB = "gcc-ranlib", LDFLAGS = "-fPIC -flto", LUPA_USE_BUNDLE = "true", LUPA_WITH_LUA_DLOPEN = "true"}
47+
4048
[[tool.cibuildwheel.overrides]]
4149
select = "*i686 *musllinux* *win32 *win_arm64 *macosx_x86_64 *armv7l"
4250
inherit.environment = "append"
@@ -46,14 +54,6 @@ test-requires = ["abi3audit>=0.0.25"]
4654
inherit.test-command = "append"
4755
test-command = ["abi3audit --strict --report {wheel}"]
4856

49-
[[tool.cibuildwheel.overrides]]
50-
select = "*aarch64"
51-
environment = {CFLAGS = "-O3 -g1 -pipe -fPIC -flto -march=armv8-a -mtune=cortex-a72", AR = "gcc-ar", NM = "gcc-nm", RANLIB = "gcc-ranlib", LDFLAGS = "-fPIC -flto", LUPA_USE_BUNDLE = "true", LUPA_WITH_LUA_DLOPEN = "true"}
52-
53-
[[tool.cibuildwheel.overrides]]
54-
select = "*armv7l"
55-
environment = {CFLAGS = "-O3 -g1 -pipe -fPIC -flto", AR = "gcc-ar", NM = "gcc-nm", RANLIB = "gcc-ranlib", LDFLAGS = "-fPIC -flto", LUPA_USE_BUNDLE = "true", LUPA_WITH_LUA_DLOPEN = "true"}
56-
5757
[tool.cibuildwheel.windows]
5858
archs = ["AMD64", "x86", "ARM64"]
5959
test-command = "python -c \"import lupa\" && python -c \"import lupa.lua54\" && python -c \"import lupa.luajit21\" "

0 commit comments

Comments
 (0)