Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add powerpc64-unknown-linux-musl target #68

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ jobs:
TARGET: mipsel-unknown-linux-musl
RUST_MUSL_MAKE_CONFIG: config.mak
TOOLCHAIN: stable
- IMAGE_TAG: powerpc64-musl
TARGET: powerpc64-unknown-linux-musl
RUST_MUSL_MAKE_CONFIG: config.mak
TOOLCHAIN: nightly
- IMAGE_TAG: powerpc64le-musl
TARGET: powerpc64le-unknown-linux-musl
RUST_MUSL_MAKE_CONFIG: config.mak
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Currently we have the following [prebuilt Docker images on Docker Hub](https://h
| stable | mipsel-unknown-linux-musl | mipsel-musl |
| stable | mips64-unknown-linux-muslabi64 | mips64-muslabi64 |
| stable | mips64el-unknown-linux-muslabi64 | mips64el-muslabi64 |
| nightly | powerpc64-unknown-linux-musl | powerpc64-musl |
| nightly | powerpc64le-unknown-linux-musl | powerpc64le-musl |
| stable | x86\_64-unknown-linux-musl | x86\_64-musl |

Expand Down
4 changes: 2 additions & 2 deletions build-std.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -e
if [[ "$TARGET" = "powerpc64le-unknown-linux-musl" || "$TARGET" = "s390x-unknown-linux-musl" ]]
if [[ "$TARGET" = powerpc64* || "$TARGET" = "s390x-unknown-linux-musl" ]]
then
export CARGO_NET_GIT_FETCH_WITH_CLI=true
export CARGO_UNSTABLE_SPARSE_REGISTRY=true
Expand Down Expand Up @@ -28,7 +28,7 @@ then
rm -rf /root/.xargo /root/.cargo/registry /root/.cargo/git custom-std

# compile libunwind
if [[ "$TARGET" = "powerpc64le-unknown-linux-musl" ]]
if [[ "$TARGET" = powerpc64* ]]
then
cargo run --manifest-path /tmp/compile-libunwind/Cargo.toml -- --target "$TARGET" "/root/.rustup/toolchains/$TOOLCHAIN-$HOST/lib/rustlib/src/rust/src/llvm-project/libunwind" out
cp out/libunwind*.a "/root/.rustup/toolchains/$TOOLCHAIN-$HOST/lib/rustlib/$TARGET/lib/"
Expand Down