Skip to content

Commit f3e77fa

Browse files
committed
Remove dependency on SSE4 instructions, reverting back to "core2" as a target CPU architecture for x86_64.
Resolves https://bugs.launchpad.net/lxml/+bug/2059910
1 parent a22e83c commit f3e77fa

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ wheel_%: dist/lxml-$(LXMLVERSION).tar.gz
6565
-e AR=gcc-ar \
6666
-e NM=gcc-nm \
6767
-e RANLIB=gcc-ranlib \
68-
-e CFLAGS="$(MANYLINUX_CFLAGS) $(if $(patsubst %aarch64,,$@),-march=core2 -msse4.1 -msse4.2,-march=armv8-a -mtune=cortex-a72)" \
68+
-e CFLAGS="$(MANYLINUX_CFLAGS) $(if $(patsubst %aarch64,,$@),-march=core2,-march=armv8-a -mtune=cortex-a72)" \
6969
-e LDFLAGS="$(MANYLINUX_LDFLAGS)" \
7070
-e STATIC_DEPS="${STATIC_DEPS}" \
7171
-e LIBXML2_VERSION="$(MANYLINUX_LIBXML2_VERSION)" \

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ environment.CFLAGS = "-O3 -g1 -pipe -fPIC -flto -march=core2 -mtune=generic"
5151
[[tool.cibuildwheel.overrides]]
5252
select = "*linux_x86_64"
5353
inherit.environment = "append"
54-
environment.CFLAGS = "-O3 -g1 -pipe -fPIC -flto -march=core2 -msse4.1 -msse4.2 -mtune=generic"
54+
environment.CFLAGS = "-O3 -g1 -pipe -fPIC -flto -march=core2 -mtune=generic"
5555

5656
[[tool.cibuildwheel.overrides]]
5757
select = "*aarch64"
@@ -67,3 +67,4 @@ archs = ["AMD64", "x86"]
6767
# so additional arm64 wheels would suffice. However, since the library build uses a mixed
6868
# amd64/arm64 setup, we build universal2 wheels regardless.
6969
archs = ["x86_64", "universal2"]
70+
M

0 commit comments

Comments
 (0)