Skip to content

Commit 6aeea24

Browse files
authored
Merge pull request #2 from athenavm/newer-rust
Use newer, mainline rust
2 parents 8caab7b + 0f23e43 commit 6aeea24

File tree

10 files changed

+130
-7736
lines changed

10 files changed

+130
-7736
lines changed

.github/workflows/build_and_release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build and release artifacts
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
#- main
@@ -64,8 +65,6 @@ jobs:
6465
run: ./build.sh
6566

6667
# Push in the Github environment variable the name of the artifact
67-
# Doing this now because in the following step the rust folder will
68-
# be delated to save some space before installing the toolchain
6968
- run: ./config.sh -artifact_name
7069

7170
- name: Package toolchain

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Release
22
on:
3+
workflow_dispatch:
34
push:
45
tags:
56
- "*"

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 "https://github.com/succinctlabs/rust.git" --depth 1 --single-branch --branch succinct
7+
git clone "https://github.com/rust-lang/rust.git" --depth 1
88
cd rust
99
git fetch --depth 1 origin $RUST_COMMIT
1010
git checkout FETCH_HEAD

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=295b693dfe72d0ac2d0924eb84af39e364d9c3e3
5+
export RUST_COMMIT=9b00956e56009bab2aa15d7bff10916599e3d6d6
66

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

patch.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,3 @@ set -euo pipefail
55
cd rust
66
patch -p1 < ../patches/rust.patch
77
cp ../patches/config.toml ./
8-
9-
cd src/llvm-project
10-
patch -p1 < ../../../patches/llvm-D70401.patch
11-
patch -p1 < ../../../patches/compiler-rt.patch

patches/compiler-rt.patch

Lines changed: 0 additions & 122 deletions
This file was deleted.

patches/config.ci.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
change-id = 121754
2+
3+
[build]
4+
target = ["riscv32em-athena-zkvm-elf"]
5+
extended = true
6+
tools = ["cargo", "cargo-clippy", "clippy", "rustfmt"]
7+
configure-args = []
8+
cargo-native-static = true
9+
10+
[rust]
11+
lld = true
12+
llvm-tools = true
13+
channel = "nightly"
14+
15+
[llvm]
16+
targets = "AArch64;RISCV;X86"

patches/config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
change-id = 116881
1+
change-id = 121754
22

33
[build]
44
target = ["riscv32em-athena-zkvm-elf"]
@@ -12,4 +12,4 @@ llvm-tools = true
1212
channel = "nightly"
1313

1414
[llvm]
15-
download-ci-llvm = false
15+
targets = "AArch64;RISCV;X86"

0 commit comments

Comments
 (0)