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() {
2121 let includes = execute_command ( & [ php_config. as_str ( ) , "--includes" ] ) ;
2222 let includes = includes. split ( ' ' ) . collect :: < Vec < _ > > ( ) ;
2323
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+
2432 // Generate libphpwrapper.a.
2533
2634 let mut builder = cc:: Build :: new ( ) ;
@@ -49,6 +57,7 @@ fn main() {
4957 // Block the `zend_random_bytes_insecure` because it fails checks.
5058 . blocklist_item ( "zend_random_bytes_insecure" )
5159 . clang_args ( & includes)
60+ . clang_args ( & extas_args)
5261 . derive_default ( true ) ;
5362
5463 // iterate over the php include directories, and update the builder
You can’t perform that action at this time.
0 commit comments