Skip to content

Commit

Permalink
release: disable LTO for powerpc64le build
Browse files Browse the repository at this point in the history
```
error: failed to get bitcode from object file for LTO (could not find requested section)

error: could not compile `maturin` (bin "maturin") due to 1 previous error
```
  • Loading branch information
messense committed Nov 30, 2024
1 parent 847c4ef commit 851f3f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ jobs:
- target: "powerpc64le-unknown-linux-musl"
image: "rust-musl-cross:powerpc64le-musl"
compatibility: "manylinux2014 musllinux_1_1"
lto: "off"
- target: "s390x-unknown-linux-gnu"
image: "manylinux2014-cross:s390x"
compatibility: "manylinux2014"
Expand All @@ -169,7 +170,7 @@ jobs:
env:
RUSTUP_HOME: /root/.rustup
CARGO_HOME: /root/.cargo
CARGO_PROFILE_RELEASE_LTO: "fat"
CARGO_PROFILE_RELEASE_LTO: "${{ matrix.platform.lto || 'fat' }}"
steps:
- uses: actions/checkout@v4
# powerpc64le-unknown-linux-musl doesn't have official std library release
Expand Down

0 comments on commit 851f3f7

Please sign in to comment.