Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: dyld symbol not found #759

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions libgit2-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ fn main() {

let target = env::var("TARGET").unwrap();
let windows = target.contains("windows");
let aarch64 = target.contains("aarch64");
let dst = PathBuf::from(env::var_os("OUT_DIR").unwrap());
let include = dst.join("include");
let mut cfg = cc::Build::new();
Expand Down Expand Up @@ -106,6 +107,10 @@ fn main() {
cfg.define("__EXTENSIONS__", None);
}

if aarch64 {
cfg.flag("-mno-outline-atomics");
}

let mut features = String::new();

features.push_str("#ifndef INCLUDE_features_h\n");
Expand Down