|
1 | 1 | use std::path::PathBuf; |
2 | | -use std::process::Command; |
3 | 2 | fn main() -> Result<(), Box<dyn std::error::Error>> { |
4 | 3 | println!("cargo:rerun-if-changed=go"); |
5 | 4 | let out_dir = std::env::var("OUT_DIR").unwrap(); |
6 | 5 | let dest_path = PathBuf::from(&out_dir); |
7 | 6 | let lib_name = "zkmgnark"; |
8 | | - let dest = dest_path.join(format!("lib{}.a", lib_name)); |
9 | | - let status = Command::new("go") |
10 | | - .current_dir("src/local/libsnark") |
11 | | - .env("CGO_ENABLED", "1") |
12 | | - .args(["build", "-tags=debug", "-o", dest.to_str().unwrap(), "-buildmode=c-archive", "."]) |
13 | | - .status() |
14 | | - .expect("Failed to build Go library"); |
15 | | - if !status.success() { |
16 | | - panic!("Go build failed"); |
17 | | - } |
| 7 | + // let dest = dest_path.join(format!("lib{}.a", lib_name)); |
| 8 | + // let status = Command::new("go") |
| 9 | + // .current_dir("src/local/libsnark") |
| 10 | + // .env("CGO_ENABLED", "1") |
| 11 | + // .args(["build", "-tags=debug", "-o", dest.to_str().unwrap(), "-buildmode=c-archive", "."]) |
| 12 | + // .status() |
| 13 | + // .expect("Failed to build Go library"); |
| 14 | + // if !status.success() { |
| 15 | + // panic!("Go build failed"); |
| 16 | + // } |
18 | 17 |
|
19 | 18 | if std::env::var_os("USE_LOCAL_PROVER").is_some() { |
20 | 19 | tonic_build::configure() |
|
0 commit comments