Skip to content

Commit 22feb96

Browse files
committed
Make it compile with risc0
1 parent 4b6ad98 commit 22feb96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

secp256k1-sys/build.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ fn main() {
3838
.define("ENABLE_MODULE_EXTRAKEYS", Some("1"));
3939

4040
if env::var("CARGO_CFG_TARGET_ARCH").unwrap() == "riscv32" {
41-
base_config.compiler("/usr/local/opt/llvm/bin/clang")
42-
.flag("--sysroot=/opt/riscv/riscv32-unknown-elf") // https://github.com/riscv-collab/riscv-gnu-toolchain has been built and stored in /opt/riscv
43-
.flag("--gcc-toolchain=/opt/riscv") // https://github.com/riscv-collab/riscv-gnu-toolchain has been built and stored in /opt/riscv
41+
base_config.compiler("/usr/bin/clang")
42+
.flag("--sysroot=/tmp/riscv32im-osx-arm64/riscv32-unknown-elf") // https://github.com/riscv-collab/riscv-gnu-toolchain has been built and stored in /opt/riscv
43+
.flag("--gcc-toolchain=/tmp/riscv32im-osx-arm64") // https://github.com/riscv-collab/riscv-gnu-toolchain has been built and stored in /opt/riscv
4444
.no_default_flags(true)
4545
.flag("-O3")
4646
.flag("--target=riscv32-unknown-none-elf")

0 commit comments

Comments
 (0)