Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit d9cd6ea

Browse files
authored
Update Rust to nightly-2024-01-05 (#24)
This PR updates Rust to the most current (as of today) `nightly-2024-01-05` and also adds two new targets: * `riscv32ema-unknown-none-elf` * `riscv64ema-unknown-none-elf` The 64-bit target is completely untested, but I've added it anyway so that it's ready once I start implementing 64-bit support in PolkaVM, and the new 32-bit target is for when I'll finish adding support for the A extension to the linker (which should be soon), which will be the new default target triplet (mostly for compatibility, because a lot of 3rd party crates assume `core::sync::atomic::*` stuff exists, and I don't want to patch the world nor special-case Rust's standard library just for our special snowflake use case). The RV32E patch was also updated to the newest version.
1 parent 31a12f0 commit d9cd6ea

File tree

6 files changed

+2469
-1887
lines changed

6 files changed

+2469
-1887
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ source config.sh
66

77
# Will create component archives (dists) ./rust/build/dist
88
cd rust
9-
./x dist rustc rust-std cargo rust-src rustfmt clippy --target $TOOLCHAIN_HOST_TRIPLET --target riscv32em-unknown-none-elf
9+
./x dist rustc rust-std cargo rust-src rustfmt clippy --target $TOOLCHAIN_HOST_TRIPLET,riscv32em-unknown-none-elf,riscv32ema-unknown-none-elf,riscv64ema-unknown-none-elf

config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
param1=${1:-}
44

5-
export RUST_COMMIT=8d321f7a88f0ae27793c133390e507bf1f49125a
5+
export RUST_COMMIT=5113ed28ea1451a13eae3a05dca0dbabfd56f587
66

77
# If -rust_commit specified then only export the rust commit variable
88
if [ "$param1" == "-rust_commit" ]; then

package.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ cd unpack
2929
inst "rustc-nightly-$TOOLCHAIN_HOST_TRIPLET"
3030
inst "rust-std-nightly-$TOOLCHAIN_HOST_TRIPLET"
3131
inst "rust-std-nightly-riscv32em-unknown-none-elf"
32+
inst "rust-std-nightly-riscv32ema-unknown-none-elf"
33+
inst "rust-std-nightly-riscv64ema-unknown-none-elf"
3234
inst "cargo-nightly-$TOOLCHAIN_HOST_TRIPLET"
3335
inst "rust-src-nightly"
3436
inst "rustfmt-nightly-$TOOLCHAIN_HOST_TRIPLET"

0 commit comments

Comments
 (0)