Skip to content

Commit

Permalink
Use RUSTFLAGS to enable B extension instead of custom toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
xxuejie committed Aug 2, 2023
1 parent 81ded53 commit 709da2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
#!/bin/bash
set -ex


cargo build --release --package tx-generator
cargo build --release --package rust-baseline-verifier --target=riscv64imac_zba_zbb_zbc_zbs-unknown-ckb-elf
cargo build --release --package rust-compiled-verifier --target=riscv64imac_zba_zbb_zbc_zbs-unknown-ckb-elf

export RUSTFLAGS='-C target-feature=+zba,+zbb,+zbc,+zbs'
cargo build --release --package rust-baseline-verifier --target=riscv64imac-unknown-none-elf
cargo build --release --package rust-compiled-verifier --target=riscv64imac-unknown-none-elf
unset RUSTFLAGS

riscv64-ckb-elf-gcc c/ckb_mmr_entry.c -o c_verifier \
-O3 -nostdlib -nostdinc -g \
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ckb-20230331-2
nightly-2023-03-31

0 comments on commit 709da2b

Please sign in to comment.