From 45fedf831afe8e4d49e245963e6094f9608f8847 Mon Sep 17 00:00:00 2001 From: Nikolai Golub Date: Tue, 19 Mar 2024 14:03:39 +0100 Subject: [PATCH] Make it compile with risc0 --- secp256k1-sys/build.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/secp256k1-sys/build.rs b/secp256k1-sys/build.rs index 7ff59fcbc..3f1785f6d 100644 --- a/secp256k1-sys/build.rs +++ b/secp256k1-sys/build.rs @@ -32,9 +32,9 @@ fn main() { .define("printf(...)", Some("")); if env::var("CARGO_CFG_TARGET_ARCH").unwrap() == "riscv32" { - base_config.compiler("/usr/local/opt/llvm/bin/clang") - .flag("--sysroot=/opt/riscv/riscv32-unknown-elf") // https://github.com/riscv-collab/riscv-gnu-toolchain has been built and stored in /opt/riscv - .flag("--gcc-toolchain=/opt/riscv") // https://github.com/riscv-collab/riscv-gnu-toolchain has been built and stored in /opt/riscv + base_config.compiler("/usr/bin/clang") + .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 + .flag("--gcc-toolchain=/tmp/riscv32im-osx-arm64") // https://github.com/riscv-collab/riscv-gnu-toolchain has been built and stored in /opt/riscv .no_default_flags(true) .flag("-O3") .flag("--target=riscv32-unknown-none-elf")