File tree Expand file tree Collapse file tree 4 files changed +51
-0
lines changed
mips64-unknown-linux-musl
mips64el-unknown-linux-musl Expand file tree Collapse file tree 4 files changed +51
-0
lines changed Original file line number Diff line number Diff line change @@ -185,8 +185,12 @@ matrix:
185185 stage : tier2
186186 - env : TARGET=mips64-unknown-linux-gnuabi64
187187 stage : tier2
188+ - env : TARGET=mips64-unknown-linux-musl
189+ stage : tier2
188190 - env : TARGET=mips64el-unknown-linux-gnuabi64
189191 stage : tier2
192+ - env : TARGET=mips64el-unknown-linux-musl
193+ stage : tier2
190194 - env : TARGET=mipsel-unknown-linux-musl
191195 stage : tier2
192196 - env : TARGET=powerpc-unknown-linux-gnu
@@ -237,6 +241,9 @@ matrix:
237241 - env : TARGET=wasm32-wasi
238242 - env : TARGET=powerpc-unknown-linux-gnu
239243 - env : TARGET=s390x-unknown-linux-gnu
244+ # FIXME(#1449): remove this once the corresponding rust-lang/rust PR lands
245+ - env : TARGET=mips64-unknown-linux-musl
246+ - env : TARGET=mips64el-unknown-linux-musl
240247
241248install : travis_retry rustup target add $TARGET
242249
Original file line number Diff line number Diff line change 1+ FROM ubuntu:19.04
2+
3+ RUN apt-get update && apt-get install -y --no-install-recommends \
4+ gcc make libc6-dev git curl ca-certificates \
5+ gcc-mips64-linux-gnuabi64 qemu-user
6+
7+ COPY install-musl.sh /
8+ RUN sh /install-musl.sh mips64
9+
10+ # FIXME: shouldn't need the `-lgcc` here, shouldn't that be in libstd?
11+ ENV PATH=$PATH:/musl-mips64/bin:/rust/bin \
12+ CC_mips64_unknown_linux_musl=musl-gcc \
13+ RUSTFLAGS='-Clink-args=-lgcc' \
14+ CARGO_TARGET_MIPS64_UNKNOWN_LINUX_MUSL_LINKER=musl-gcc \
15+ CARGO_TARGET_MIPS64_UNKNOWN_LINUX_MUSL_RUNNER="qemu-mips64 -L /musl-mips64"
Original file line number Diff line number Diff line change 1+ FROM ubuntu:19.04
2+
3+ RUN apt-get update && apt-get install -y --no-install-recommends \
4+ gcc make libc6-dev git curl ca-certificates \
5+ gcc-mips64el-linux-gnuabi64 qemu-user
6+
7+ COPY install-musl.sh /
8+ RUN sh /install-musl.sh mips64el
9+
10+ # FIXME: shouldn't need the `-lgcc` here, shouldn't that be in libstd?
11+ ENV PATH=$PATH:/musl-mips64el/bin:/rust/bin \
12+ CC_mips64el_unknown_linux_musl=musl-gcc \
13+ RUSTFLAGS='-Clink-args=-lgcc' \
14+ CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_MUSL_LINKER=musl-gcc \
15+ CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_MUSL_RUNNER="qemu-mips64el -L /musl-mips64el"
Original file line number Diff line number Diff line change @@ -46,6 +46,20 @@ case ${1} in
4646 ./configure --prefix=" /musl-${musl_arch} "
4747 make install -j4
4848 ;;
49+ mips64)
50+ musl_arch=mips64
51+ kernel_arch=mips
52+ CC=mips64-linux-gnuabi64-gcc CFLAGS=" -march=mips64r2 -mabi=64" \
53+ ./configure --prefix=" /musl-${musl_arch} " --enable-wrapper=yes
54+ make install -j4
55+ ;;
56+ mips64el)
57+ musl_arch=mips64el
58+ kernel_arch=mips
59+ CC=mips64el-linux-gnuabi64-gcc CFLAGS=" -march=mips64r2 -mabi=64" \
60+ ./configure --prefix=" /musl-${musl_arch} " --enable-wrapper=yes
61+ make install -j4
62+ ;;
4963 * )
5064 echo " Unknown target arch: \" ${1} \" "
5165 exit 1
You can’t perform that action at this time.
0 commit comments