File tree Expand file tree Collapse file tree 5 files changed +14
-33
lines changed Expand file tree Collapse file tree 5 files changed +14
-33
lines changed Original file line number Diff line number Diff line change 1
1
# Compiled Rust Toolchain for RV32E
2
2
3
- This repository compile and publish as release final binaries of the Rust toolchain targetting RISC-V RV32E.
3
+ This repository compiles and publishes as release final binaries of the Rust toolchain targeting RISC-V RV32E.
4
4
5
5
## Building
6
6
@@ -29,14 +29,3 @@ xattr -rc ~/.rustup/toolchains/rve-nightly
29
29
The last step is needed when downloading the binary toolchain with Safari. Otherwise GateKeeper will prevent running downloaded binaries without code signature:
30
30
31
31
<img width =" 245 " alt =" 326768663-26a8b06f-5074-485e-9677-12806b0454bd " src =" https://github.com/paritytech/rustc-rv32e-toolchain/assets/2580396/5fd140ae-526c-435c-8e6c-ba91a3ab27d3 " >
32
-
33
- ## Build with ` ci-unified `
34
-
35
- If there is a need to build the toolchain using [ Parity default CI environment] ( https://github.com/paritytech/scripts/tree/master/dockerfiles/ci-unified ) , tweak the build step as follows:
36
-
37
- ```
38
- export CXX=/usr/bin/clang++-15
39
- ...
40
- ./build.sh --DCMAKE_BUILD_TYPE=Release
41
- ...
42
- ```
Original file line number Diff line number Diff line change @@ -6,4 +6,5 @@ source config.sh
6
6
7
7
# Will create component archives (dists) ./rust/build/dist
8
8
cd rust
9
- CARGO_TARGET_RISCV32EM_ATHENA_ZKVM_ELF_RUSTFLAGS=" -Cpasses=loweratomic" ./x dist rustc rust-std cargo rust-src rustfmt clippy --target $TOOLCHAIN_HOST_TRIPLET ,riscv32em-athena-zkvm-elf
9
+ CARGO_TARGET_RISCV32EM_ATHENA_ZKVM_ELF_RUSTFLAGS=" -Cpasses=loweratomic" ./x build
10
+ CARGO_TARGET_RISCV32EM_ATHENA_ZKVM_ELF_RUSTFLAGS=" -Cpasses=loweratomic" ./x build --stage 2
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ set -euo pipefail
4
4
5
5
source config.sh -rust_commit
6
6
7
- git clone --depth 1 " https://github.com/succinctlabs/rust.git"
7
+ git clone " https://github.com/succinctlabs/rust.git" --depth 1 --single-branch --branch succinct
8
8
cd rust
9
9
git fetch --depth 1 origin $RUST_COMMIT
10
10
git checkout FETCH_HEAD
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ inst () {
20
20
21
21
# dist contains the tared components we want to install
22
22
mv rust/build/dist .
23
- rm -rf rust
23
+ # rm -rf rust
24
24
25
25
cd dist
26
26
mkdir unpack
Original file line number Diff line number Diff line change 1
- change-id = 102579
2
- profile = " user"
3
-
4
- [llvm ]
5
- targets = " AArch64;RISCV;X86"
1
+ change-id = 116881
6
2
7
3
[build ]
8
- compiler-docs = true
9
- docs = false
10
- locked-deps = true
4
+ target = [" riscv32em-athena-zkvm-elf" ]
5
+ extended = true
6
+ tools = [" cargo" , " cargo-clippy" , " clippy" , " rustfmt" ]
7
+ configure-args = []
11
8
12
9
[rust ]
13
- channel = " nightly"
14
10
lld = true
15
- jemalloc = true
16
- debuginfo-level-std = 2
17
- remap-debuginfo = true
18
- new-symbol-mangling = true
19
- split-debuginfo = " off"
11
+ llvm-tools = true
12
+ channel = " nightly"
20
13
21
- # we gonna repack anyways so time spent on compression here is wasted
22
- [dist ]
23
- compression-formats = [" gz" ]
24
- compression-profile = " fast"
14
+ [llvm ]
15
+ download-ci-llvm = false
You can’t perform that action at this time.
0 commit comments