Skip to content

Commit

Permalink
Fix PPC64 page size in binary builds.
Browse files Browse the repository at this point in the history
## Summary

Add maturin build flag to set 64kb page size on PPC64 and PPC64LE
architectures. Not aware of modern systems that use 4kb pages.

Resolves astral-sh#6528

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Author:    Tom <53666156+tom-miller1@users.noreply.github.com>
# Date:      Wed Sep 11 11:10:13 2024 -0400
#
# On branch main
# Your branch and 'origin/main' have diverged,
# and have 1 and 2 different commits each, respectively.
#   (use "git pull" to merge the remote branch into yours)
#
# Changes to be committed:
#	modified:   build-binaries.yml
#
  • Loading branch information
tom-miller1 committed Sep 11, 2024
1 parent 38c7c5f commit a78a365
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,12 @@ jobs:
platform:
- target: powerpc64le-unknown-linux-gnu
arch: ppc64le
# see https://github.com/astral-sh/uv/issues/6528
maturin_docker_options: -e JEMALLOC_SYS_WITH_LG_PAGE=16
- target: powerpc64-unknown-linux-gnu
arch: ppc64
# see https://github.com/astral-sh/uv/issues/6528
maturin_docker_options: -e JEMALLOC_SYS_WITH_LG_PAGE=16

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -576,6 +580,8 @@ jobs:
arch: armv7
- target: powerpc64le-unknown-linux-musl
arch: ppc64le
# see https://github.com/astral-sh/uv/issues/6528
maturin_docker_options: -e JEMALLOC_SYS_WITH_LG_PAGE=16
toolchain: nightly
fail-fast: false

Expand Down

0 comments on commit a78a365

Please sign in to comment.