-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Promote powerpc64le-unknown-linux-musl to tier 2 with host tools #133801
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
Merged
bors
merged 4 commits into
rust-lang:master
from
Gelbpunkt:powerpc64le-unknown-linux-musl-tier-2
Dec 18, 2024
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
68ce659
Promote powerpc64le-unknown-linux-musl to tier 2 with host tools
Gelbpunkt 3e3ee4c
Fix markdown link
Gelbpunkt 8bb0fd5
Update src/doc/rustc/src/platform-support/powerpc64le-unknown-linux-m…
Gelbpunkt 286de9f
Move dist-powerpc64le-linux to job-linux-4c-largedisk
Gelbpunkt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/ci/docker/host-x86_64/dist-powerpc64le-linux/powerpc64le-unknown-linux-musl.defconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
CT_CONFIG_VERSION="4" | ||
CT_EXPERIMENTAL=y | ||
CT_PREFIX_DIR="/x-tools/${CT_TARGET}" | ||
CT_USE_MIRROR=y | ||
CT_MIRROR_BASE_URL="https://ci-mirrors.rust-lang.org/rustc" | ||
CT_ARCH_POWERPC=y | ||
CT_ARCH_LE=y | ||
CT_ARCH_64=y | ||
# CT_DEMULTILIB is not set | ||
CT_ARCH_ARCH="powerpc64le" | ||
CT_KERNEL_LINUX=y | ||
CT_LINUX_V_4_19=y | ||
CT_LIBC_MUSL=y | ||
CT_MUSL_V_1_2_3=y | ||
CT_CC_LANG_CXX=y | ||
CT_GETTEXT_NEEDED=y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
src/doc/rustc/src/platform-support/powerpc64le-unknown-linux-musl.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# powerpc64le-unknown-linux-musl | ||
|
||
**Tier: 2** | ||
|
||
Target for 64-bit little endian PowerPC Linux programs using musl libc. | ||
|
||
## Target maintainers | ||
|
||
- [@Gelbpunkt](https://github.com/Gelbpunkt) | ||
- [@famfo](https://github.com/famfo) | ||
- [@neuschaefer](https://github.com/neuschaefer) | ||
|
||
## Requirements | ||
|
||
Building the target itself requires a 64-bit little endian PowerPC compiler that is supported by `cc-rs`. | ||
|
||
## Building the target | ||
|
||
The target can be built by enabling it for a `rustc` build. | ||
|
||
```toml | ||
[build] | ||
target = ["powerpc64le-unknown-linux-musl"] | ||
``` | ||
|
||
Make sure your C compiler is included in `$PATH`, then add it to the `config.toml`: | ||
|
||
```toml | ||
[target.powerpc64le-unknown-linux-musl] | ||
cc = "powerpc64le-linux-musl-gcc" | ||
cxx = "powerpc64le-linux-musl-g++" | ||
ar = "powerpc64le-linux-musl-ar" | ||
linker = "powerpc64le-linux-musl-gcc" | ||
``` | ||
|
||
## Building Rust programs | ||
|
||
This target are distributed through `rustup`, and otherwise require no | ||
special configuration. | ||
|
||
## Cross-compilation | ||
|
||
This target can be cross-compiled from any host. | ||
|
||
## Testing | ||
|
||
This target can be tested as normal with `x.py` on a 64-bit little endian | ||
PowerPC host or via QEMU emulation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.