File tree Expand file tree Collapse file tree 5 files changed +30
-0
lines changed
docker/powerpc64le-unknown-linux-musl Expand file tree Collapse file tree 5 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,7 @@ jobs:
188
188
- loongarch64-unknown-linux-musl
189
189
- powerpc64-unknown-linux-gnu
190
190
- powerpc64le-unknown-linux-gnu
191
+ - powerpc64le-unknown-linux-musl
191
192
- riscv64gc-unknown-linux-gnu
192
193
- s390x-unknown-linux-gnu
193
194
- wasm32-unknown-emscripten
@@ -222,6 +223,9 @@ jobs:
222
223
- target : loongarch64-unknown-linux-musl
223
224
env :
224
225
RUST_LIBC_UNSTABLE_MUSL_V1_2_3 : 1
226
+ - target : powerpc64le-unknown-linux-musl
227
+ env :
228
+ RUST_LIBC_UNSTABLE_MUSL_V1_2_3 : 1
225
229
# FIXME(ppc): SIGILL running tests, see
226
230
# https://github.com/rust-lang/libc/pull/4254#issuecomment-2636288713
227
231
# - target: powerpc-unknown-linux-gnu
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ targets = [
78
78
" powerpc64-unknown-linux-gnu" ,
79
79
" powerpc64-wrs-vxworks" ,
80
80
" powerpc64le-unknown-linux-gnu" ,
81
+ " powerpc64le-unknown-linux-musl" ,
81
82
" riscv32gc-unknown-linux-gnu" ,
82
83
" riscv32i-unknown-none-elf" ,
83
84
" riscv32imac-unknown-none-elf" ,
Original file line number Diff line number Diff line change
1
+ FROM ubuntu:24.10
2
+
3
+ RUN apt-get update && apt-get install -y --no-install-recommends \
4
+ gcc make libc6-dev git curl ca-certificates \
5
+ gcc-powerpc64le-linux-gnu qemu-user xz-utils patch rsync
6
+
7
+ COPY install-musl.sh /
8
+ RUN /install-musl.sh powerpc64le
9
+
10
+ # FIXME: shouldn't need the `-lgcc` here, shouldn't that be in std?
11
+ ENV PATH=$PATH:/musl-powerpc64/bin:/rust/bin \
12
+ CC_powerpc64le_unknown_linux_musl=musl-gcc \
13
+ RUSTFLAGS='-Clink-args=-lgcc -L /musl-powerpc64/lib' \
14
+ CARGO_TARGET_POWERPC64LE_UNKNOWN_LINUX_MUSL_LINKER=musl-gcc \
15
+ CARGO_TARGET_POWERPC64LE_UNKNOWN_LINUX_MUSL_RUNNER="qemu-ppc64le -L /musl-powerpc64"
Original file line number Diff line number Diff line change @@ -68,6 +68,13 @@ case ${1} in
68
68
./configure --prefix=" /musl-${musl_arch} " --enable-wrapper=yes
69
69
make install -j4
70
70
;;
71
+ powerpc64* )
72
+ musl_arch=powerpc64
73
+ kernel_arch=powerpc
74
+ CC=" ${1} -linux-gnu-gcc" CFLAGS=" -mlong-double-64" \
75
+ ./configure --prefix=" /musl-${musl_arch} " --enable-wrapper=yes
76
+ make install -j4
77
+ ;;
71
78
* )
72
79
echo " Unknown target arch: \" ${1} \" "
73
80
exit 1
Original file line number Diff line number Diff line change @@ -161,11 +161,14 @@ x86_64-unknown-linux-musl \
161
161
x86_64-unknown-netbsd \
162
162
"
163
163
164
+ # FIXME(powerpc64le): powerpc64le-unknown-linux-musl is tier 2 since 1.85 and
165
+ # can be moved to rust_linux_targets once MSRV is increased
164
166
rust_nightly_linux_targets=" \
165
167
aarch64-unknown-fuchsia \
166
168
armv5te-unknown-linux-gnueabi \
167
169
armv5te-unknown-linux-musleabi \
168
170
i686-pc-windows-gnu \
171
+ powerpc64le-unknown-linux-musl \
169
172
riscv64gc-unknown-linux-gnu \
170
173
x86_64-fortanix-unknown-sgx \
171
174
x86_64-pc-solaris \
You can’t perform that action at this time.
0 commit comments