Skip to content

Commit

Permalink
Auto merge of #1606 - msizanoen1:riscv, r=gnzlbg
Browse files Browse the repository at this point in the history
Support for RISC-V 64-bit GNU/Linux

Add support for RISC-V 64-bit GNU/Linux.

Follow up to rust-lang/rust#66661.

r? @alexcrichton
  • Loading branch information
bors committed Nov 28, 2019
2 parents 581ba35 + a06978b commit 5130285
Show file tree
Hide file tree
Showing 7 changed files with 871 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ci/azure-install-rust.yml
Expand Up @@ -8,7 +8,7 @@ steps:
if command -v rustup; then
# Uncomment when rustup on Azure is updated
#rustup set profile minimal
rustup update $toolchain
rustup update --force $toolchain
rustup default $toolchain
else
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $toolchain --profile=minimal
Expand Down
3 changes: 2 additions & 1 deletion ci/build.sh
Expand Up @@ -15,7 +15,7 @@ RUST=${TOOLCHAIN}
echo "Testing Rust ${RUST} on ${OS}"

if [ "${TOOLCHAIN}" = "nightly" ] ; then
cargo +nightly install cargo-xbuild -Z install-upgrade
cargo +nightly install cargo-xbuild
rustup component add rust-src
fi

Expand Down Expand Up @@ -220,6 +220,7 @@ nvptx64-nvidia-cuda \
powerpc-unknown-linux-gnuspe \
powerpc-unknown-netbsd \
powerpc64-unknown-freebsd \
riscv64gc-unknown-linux-gnu \
riscv32imac-unknown-none-elf \
riscv32imc-unknown-none-elf \
sparc64-unknown-netbsd \
Expand Down
2 changes: 1 addition & 1 deletion ci/dox.sh
Expand Up @@ -19,7 +19,7 @@ if ! rustc --version | grep -E "nightly" ; then
fi

rustup component add rust-src
cargo +nightly install cargo-xbuild -Z install-upgrade
cargo +nightly install cargo-xbuild

# List all targets that do currently build successfully:
# shellcheck disable=SC1003
Expand Down
2 changes: 1 addition & 1 deletion ci/semver.sh
Expand Up @@ -13,7 +13,7 @@ if ! rustc --version | grep -E "nightly" ; then
exit 1
fi

cargo +nightly install semverver -Z install-upgrade
cargo +nightly install semverver

TARGETS=
case "${OS}" in
Expand Down
3 changes: 3 additions & 0 deletions src/unix/linux_like/linux/gnu/b64/mod.rs
Expand Up @@ -78,6 +78,9 @@ cfg_if! {
} else if #[cfg(any(target_arch = "x86_64"))] {
mod x86_64;
pub use self::x86_64::*;
} else if #[cfg(any(target_arch = "riscv64"))] {
mod riscv64;
pub use self::riscv64::*;
} else {
// Unknown target_arch
}
Expand Down

0 comments on commit 5130285

Please sign in to comment.