mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2025-01-13 09:15:47 +00:00
Add gmp lib search path for ARM MacOS
This commit is contained in:
parent
7a29f65100
commit
ab39c6b2c9
@ -104,6 +104,12 @@ fn generate(f: &mut dyn Write) {
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("cargo:rerun-if-changed=build.rs");
|
println!("cargo:rerun-if-changed=build.rs");
|
||||||
|
|
||||||
|
let target = env::var("TARGET").expect("cargo should have set this");
|
||||||
|
if target == "aarch64-apple-darwin" {
|
||||||
|
println!("cargo:rustc-link-search=/opt/homebrew/Cellar/gmp/6.3.0/lib");
|
||||||
|
}
|
||||||
|
|
||||||
let manifest_path = env::var("OUT_DIR").expect("cargo should have set this");
|
let manifest_path = env::var("OUT_DIR").expect("cargo should have set this");
|
||||||
let mut path = PathBuf::from(&manifest_path);
|
let mut path = PathBuf::from(&manifest_path);
|
||||||
path.push("constants.rs");
|
path.push("constants.rs");
|
||||||
|
Loading…
Reference in New Issue
Block a user