mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 14:25:41 +08:00
fix weird macos thing?!
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user