We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4348694 commit be9959dCopy full SHA for be9959d
libgit2-sys/build.rs
@@ -32,6 +32,7 @@ fn main() {
32
33
let target = env::var("TARGET").unwrap();
34
let windows = target.contains("windows");
35
+ let aarch64 = target.contains("aarch64");
36
let dst = PathBuf::from(env::var_os("OUT_DIR").unwrap());
37
let include = dst.join("include");
38
let mut cfg = cc::Build::new();
@@ -106,6 +107,10 @@ fn main() {
106
107
cfg.define("__EXTENSIONS__", None);
108
}
109
110
+ if aarch64 {
111
+ cfg.flag("-mno-outline-atomics");
112
+ }
113
+
114
let mut features = String::new();
115
116
features.push_str("#ifndef INCLUDE_features_h\n");
0 commit comments