-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #1449 - xen0n:mips64-musl-targets, r=gnzlbg
Add musl support for MIPS64 Tested with patched stage2; both static and dynamic binaries confirmed working. Initial CI support in the form of no-core targets are added.
- Loading branch information
Showing
11 changed files
with
1,287 additions
and
200 deletions.
There are no files selected for viewing
This file contains 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 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 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,15 @@ | ||
FROM ubuntu:19.04 | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
gcc make libc6-dev git curl ca-certificates \ | ||
gcc-mips64-linux-gnuabi64 qemu-user | ||
|
||
COPY install-musl.sh / | ||
RUN sh /install-musl.sh mips64 | ||
|
||
# FIXME: shouldn't need the `-lgcc` here, shouldn't that be in libstd? | ||
ENV PATH=$PATH:/musl-mips64/bin:/rust/bin \ | ||
CC_mips64_unknown_linux_muslabi64=musl-gcc \ | ||
RUSTFLAGS='-Clink-args=-lgcc' \ | ||
CARGO_TARGET_MIPS64_UNKNOWN_LINUX_MUSLABI64_LINKER=musl-gcc \ | ||
CARGO_TARGET_MIPS64_UNKNOWN_LINUX_MUSLABI64_RUNNER="qemu-mips64 -L /musl-mips64" |
This file contains 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,15 @@ | ||
FROM ubuntu:19.04 | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
gcc make libc6-dev git curl ca-certificates \ | ||
gcc-mips64el-linux-gnuabi64 qemu-user | ||
|
||
COPY install-musl.sh / | ||
RUN sh /install-musl.sh mips64el | ||
|
||
# FIXME: shouldn't need the `-lgcc` here, shouldn't that be in libstd? | ||
ENV PATH=$PATH:/musl-mips64el/bin:/rust/bin \ | ||
CC_mips64el_unknown_linux_muslabi64=musl-gcc \ | ||
RUSTFLAGS='-Clink-args=-lgcc' \ | ||
CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_MUSLABI64_LINKER=musl-gcc \ | ||
CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_MUSLABI64_RUNNER="qemu-mips64el -L /musl-mips64el" |
This file contains 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 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.