Skip to content

Commit

Permalink
chore: proper static libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
chancehudson committed Jan 16, 2025
1 parent 19072ad commit 89fa4af
Show file tree
Hide file tree
Showing 19 changed files with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mopro-ffi/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::path::PathBuf;
use std::fs;

fn main() {
#[cfg(feature = "circom")]
Expand All @@ -11,7 +12,12 @@ fn main() {

// Try to list contents of the target directory
let manifest_dir = PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap());
let absolute_lib_path = manifest_dir.join("rapidsnark").join(arch);
let rapidsnark_dir = manifest_dir.join("rapidsnark");
let absolute_lib_path = if fs::exists(rapidsnark_dir.join(&target)).unwrap() {
rapidsnark_dir.join(target)
} else {
rapidsnark_dir.join(arch)
};

let compiler = cc::Build::new().get_compiler();
let cpp_stdlib = if compiler.is_like_clang() {
Expand Down
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added mopro-ffi/rapidsnark/aarch64-apple-ios/libfq.a
Binary file not shown.
Binary file added mopro-ffi/rapidsnark/aarch64-apple-ios/libfr.a
Binary file not shown.
Binary file added mopro-ffi/rapidsnark/aarch64-apple-ios/libgmp.a
Binary file not shown.
Binary file not shown.
Binary file removed mopro-ffi/rapidsnark/aarch64/librapidsnark.dylib
Binary file not shown.
Binary file added mopro-ffi/rapidsnark/x86_64-apple-ios/libfq.a
Binary file not shown.
Binary file added mopro-ffi/rapidsnark/x86_64-apple-ios/libfr.a
Binary file not shown.
Binary file added mopro-ffi/rapidsnark/x86_64-apple-ios/libgmp.a
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 89fa4af

Please sign in to comment.