Skip to content

Commit 5130285

Browse files
committed
Auto merge of #1606 - msizanoen1:riscv, r=gnzlbg
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
2 parents 581ba35 + a06978b commit 5130285

File tree

7 files changed

+871
-5
lines changed

7 files changed

+871
-5
lines changed

ci/azure-install-rust.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ steps:
88
if command -v rustup; then
99
# Uncomment when rustup on Azure is updated
1010
#rustup set profile minimal
11-
rustup update $toolchain
11+
rustup update --force $toolchain
1212
rustup default $toolchain
1313
else
1414
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $toolchain --profile=minimal

ci/build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUST=${TOOLCHAIN}
1515
echo "Testing Rust ${RUST} on ${OS}"
1616

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

@@ -220,6 +220,7 @@ nvptx64-nvidia-cuda \
220220
powerpc-unknown-linux-gnuspe \
221221
powerpc-unknown-netbsd \
222222
powerpc64-unknown-freebsd \
223+
riscv64gc-unknown-linux-gnu \
223224
riscv32imac-unknown-none-elf \
224225
riscv32imc-unknown-none-elf \
225226
sparc64-unknown-netbsd \

ci/dox.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if ! rustc --version | grep -E "nightly" ; then
1919
fi
2020

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

2424
# List all targets that do currently build successfully:
2525
# shellcheck disable=SC1003

ci/semver.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if ! rustc --version | grep -E "nightly" ; then
1313
exit 1
1414
fi
1515

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

1818
TARGETS=
1919
case "${OS}" in

src/unix/linux_like/linux/gnu/b64/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ cfg_if! {
7878
} else if #[cfg(any(target_arch = "x86_64"))] {
7979
mod x86_64;
8080
pub use self::x86_64::*;
81+
} else if #[cfg(any(target_arch = "riscv64"))] {
82+
mod riscv64;
83+
pub use self::riscv64::*;
8184
} else {
8285
// Unknown target_arch
8386
}

0 commit comments

Comments
 (0)