Skip to content

Commit

Permalink
Make it compile with risc0
Browse files Browse the repository at this point in the history
  • Loading branch information
citizen-stig committed Mar 19, 2024
1 parent 97d7528 commit 45fedf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions secp256k1-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 45fedf8

Please sign in to comment.