Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for RISC-V 64-bit GNU/Linux #1606

Merged
merged 3 commits into from Nov 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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