Skip to content

Commit be9959d

Browse files
committed
quickfix: add flag -mno-outline-atomics on aarch64
1 parent 4348694 commit be9959d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libgit2-sys/build.rs

+5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ fn main() {
3232

3333
let target = env::var("TARGET").unwrap();
3434
let windows = target.contains("windows");
35+
let aarch64 = target.contains("aarch64");
3536
let dst = PathBuf::from(env::var_os("OUT_DIR").unwrap());
3637
let include = dst.join("include");
3738
let mut cfg = cc::Build::new();
@@ -106,6 +107,10 @@ fn main() {
106107
cfg.define("__EXTENSIONS__", None);
107108
}
108109

110+
if aarch64 {
111+
cfg.flag("-mno-outline-atomics");
112+
}
113+
109114
let mut features = String::new();
110115

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

0 commit comments

Comments
 (0)