Skip to content

Commit

Permalink
manylinux x86-64 instead of x86-64-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ijl committed May 25, 2023
1 parent 399c591 commit f02d38f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ jobs:
env:
PATH: /github/home/.local/bin:/github/home/.cargo/bin:/opt/python/${{ matrix.python.abi }}/bin:/opt/rh/gcc-toolset-12/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
CC: "clang"
CFLAGS: "-O2 -fno-plt -flto=thin -march=x86-64-v2 -mtune=generic"
CFLAGS: "-O2 -fno-plt -flto=thin"
LDFLAGS: "-O2 -flto=thin -fuse-ld=lld -Wl,--as-needed"
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld -C target-cpu=x86-64-v2 -Z tune-cpu=generic"
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld"
CARGO_UNSTABLE_SPARSE_REGISTRY: "true"
container:
image: quay.io/pypa/manylinux_2_28_x86_64:latest
Expand Down
4 changes: 2 additions & 2 deletions script/develop
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
rm -f target/wheels/*

export CC="clang"
export CFLAGS="-O2 -fno-plt -flto=thin -march=x86-64-v2 -mtune=generic"
export CFLAGS="-O2 -fno-plt -flto=thin"
export LDFLAGS="-O2 -flto=thin -fuse-ld=lld -Wl,--as-needed"
export RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=lld -C target-cpu=x86-64-v2 -Z tune-cpu=generic"
export RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=lld"

maturin build -i python3 --release "$@"

Expand Down

0 comments on commit f02d38f

Please sign in to comment.