File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ fn main() {
21
21
let includes = execute_command ( & [ php_config. as_str ( ) , "--includes" ] ) ;
22
22
let includes = includes. split ( ' ' ) . collect :: < Vec < _ > > ( ) ;
23
23
24
+ let mut extas_args = Vec :: new ( ) ;
25
+ if cfg ! ( all(
26
+ target_arch = "aarch64" ,
27
+ any( target_os = "macos" , target_os = "ios" )
28
+ ) ) {
29
+ extas_args. push ( "-mno-neon" ) ;
30
+ }
31
+
24
32
// Generate libphpwrapper.a.
25
33
26
34
let mut builder = cc:: Build :: new ( ) ;
@@ -49,6 +57,7 @@ fn main() {
49
57
// Block the `zend_random_bytes_insecure` because it fails checks.
50
58
. blocklist_item ( "zend_random_bytes_insecure" )
51
59
. clang_args ( & includes)
60
+ . clang_args ( & extas_args)
52
61
. derive_default ( true ) ;
53
62
54
63
// iterate over the php include directories, and update the builder
You can’t perform that action at this time.
0 commit comments