Skip to content

Commit b8e9496

Browse files
committed
Use succinct config as well
Update README
1 parent 39a6f12 commit b8e9496

File tree

5 files changed

+14
-33
lines changed

5 files changed

+14
-33
lines changed

README.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Compiled Rust Toolchain for RV32E
22

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.
44

55
## Building
66

@@ -29,14 +29,3 @@ xattr -rc ~/.rustup/toolchains/rve-nightly
2929
The last step is needed when downloading the binary toolchain with Safari. Otherwise GateKeeper will prevent running downloaded binaries without code signature:
3030

3131
<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-
```

build.sh

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

77
# Will create component archives (dists) ./rust/build/dist
88
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

clone.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euo pipefail
44

55
source config.sh -rust_commit
66

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
88
cd rust
99
git fetch --depth 1 origin $RUST_COMMIT
1010
git checkout FETCH_HEAD

package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ inst () {
2020

2121
# dist contains the tared components we want to install
2222
mv rust/build/dist .
23-
rm -rf rust
23+
#rm -rf rust
2424

2525
cd dist
2626
mkdir unpack

patches/config.toml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
1-
change-id = 102579
2-
profile = "user"
3-
4-
[llvm]
5-
targets = "AArch64;RISCV;X86"
1+
change-id = 116881
62

73
[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 = []
118

129
[rust]
13-
channel = "nightly"
1410
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"
2013

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

0 commit comments

Comments
 (0)