Skip to content

Commit

Permalink
Remove dependency on SSE4 instructions, reverting back to "core2" as …
Browse files Browse the repository at this point in the history
…a target CPU architecture for x86_64.

Resolves https://bugs.launchpad.net/lxml/+bug/2059910
  • Loading branch information
scoder committed May 10, 2024
1 parent a22e83c commit f3e77fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ wheel_%: dist/lxml-$(LXMLVERSION).tar.gz
-e AR=gcc-ar \
-e NM=gcc-nm \
-e RANLIB=gcc-ranlib \
-e CFLAGS="$(MANYLINUX_CFLAGS) $(if $(patsubst %aarch64,,$@),-march=core2 -msse4.1 -msse4.2,-march=armv8-a -mtune=cortex-a72)" \
-e CFLAGS="$(MANYLINUX_CFLAGS) $(if $(patsubst %aarch64,,$@),-march=core2,-march=armv8-a -mtune=cortex-a72)" \
-e LDFLAGS="$(MANYLINUX_LDFLAGS)" \
-e STATIC_DEPS="${STATIC_DEPS}" \
-e LIBXML2_VERSION="$(MANYLINUX_LIBXML2_VERSION)" \
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ environment.CFLAGS = "-O3 -g1 -pipe -fPIC -flto -march=core2 -mtune=generic"
[[tool.cibuildwheel.overrides]]
select = "*linux_x86_64"
inherit.environment = "append"
environment.CFLAGS = "-O3 -g1 -pipe -fPIC -flto -march=core2 -msse4.1 -msse4.2 -mtune=generic"
environment.CFLAGS = "-O3 -g1 -pipe -fPIC -flto -march=core2 -mtune=generic"

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

0 comments on commit f3e77fa

Please sign in to comment.