File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ fn main() {
32
32
33
33
let target = env:: var ( "TARGET" ) . unwrap ( ) ;
34
34
let windows = target. contains ( "windows" ) ;
35
+ let aarch64 = target. contains ( "aarch64" ) ;
35
36
let dst = PathBuf :: from ( env:: var_os ( "OUT_DIR" ) . unwrap ( ) ) ;
36
37
let include = dst. join ( "include" ) ;
37
38
let mut cfg = cc:: Build :: new ( ) ;
@@ -85,6 +86,7 @@ fn main() {
85
86
cfg. file ( "libgit2/src/allocators/failalloc.c" ) ;
86
87
cfg. file ( "libgit2/src/allocators/stdalloc.c" ) ;
87
88
89
+
88
90
if windows {
89
91
add_c_files ( & mut cfg, "libgit2/src/win32" ) ;
90
92
cfg. define ( "STRSAFE_NO_DEPRECATE" , None ) ;
@@ -106,6 +108,10 @@ fn main() {
106
108
cfg. define ( "__EXTENSIONS__" , None ) ;
107
109
}
108
110
111
+ if aarch64 {
112
+ cfg. flag ( "-mno-outline-atomics" ) ;
113
+ }
114
+
109
115
let mut features = String :: new ( ) ;
110
116
111
117
features. push_str ( "#ifndef INCLUDE_features_h\n " ) ;
You can’t perform that action at this time.
0 commit comments