Skip to content

Commit e9b8f74

Browse files
committed
Add loweratomic flag and executables
1 parent 0c59ee5 commit e9b8f74

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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,riscv32em-athena-zkvm-elf
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

patches/rust.patch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ new file mode 100644
1515
index 000000000..7a09c78a4
1616
--- /dev/null
1717
+++ b/compiler/rustc_target/src/spec/targets/riscv32em_athena_zkvm_elf.rs
18-
@@ -0,0 +1,28 @@
18+
@@ -0,0 +1,29 @@
1919
+use crate::spec::{Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, Target, TargetOptions};
2020
+
2121
+pub fn target() -> Target {
@@ -36,6 +36,7 @@ index 000000000..7a09c78a4
3636
+ vendor: "athena".into(),
3737
+ singlethread: true,
3838
+ atomic_cas: true,
39+
+ executables: true,
3940
+ panic_strategy: PanicStrategy::Abort,
4041
+ relocation_model: RelocModel::Static,
4142
+ emit_debug_gdb_scripts: false,

0 commit comments

Comments
 (0)