File tree Expand file tree Collapse file tree 4 files changed +46
-0
lines changed
mips64-unknown-linux-muslabi64
mips64el-unknown-linux-muslabi64 Expand file tree Collapse file tree 4 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -204,6 +204,8 @@ i686-unknown-netbsd \
204204i686-unknown-openbsd \
205205mips-unknown-linux-uclibc \
206206mipsel-unknown-linux-uclibc \
207+ mips64-unknown-linux-muslabi64 \
208+ mips64el-unknown-linux-muslabi64 \
207209nvptx64-nvidia-cuda \
208210powerpc-unknown-linux-gnuspe \
209211powerpc-unknown-netbsd \
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_muslabi64=musl-gcc \
13+ RUSTFLAGS='-Clink-args=-lgcc' \
14+ CARGO_TARGET_MIPS64_UNKNOWN_LINUX_MUSLABI64_LINKER=musl-gcc \
15+ CARGO_TARGET_MIPS64_UNKNOWN_LINUX_MUSLABI64_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_muslabi64=musl-gcc \
13+ RUSTFLAGS='-Clink-args=-lgcc' \
14+ CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_MUSLABI64_LINKER=musl-gcc \
15+ CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_MUSLABI64_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