mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
fix weird macos thing?!
This commit is contained in:
parent
d532b57810
commit
4e4cf4bbc7
@ -143,6 +143,10 @@ class SPCConfigUtil
|
||||
}
|
||||
$pc_cflags = implode(' ', $pc);
|
||||
if ($pc_cflags !== '' && ($pc_cflags = PkgConfigUtil::getCflags($pc_cflags)) !== '') {
|
||||
$arr = explode(' ', $pc_cflags);
|
||||
$arr = array_unique($arr);
|
||||
$arr = array_filter($arr, fn ($x) => !str_starts_with($x, 'SHELL:-Xarch_'));
|
||||
$pc_cflags = implode(' ', $arr);
|
||||
$includes[] = $pc_cflags;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user