mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 17:35:36 +08:00
fix weird macos thing?!
This commit is contained in:
@@ -143,6 +143,10 @@ class SPCConfigUtil
|
|||||||
}
|
}
|
||||||
$pc_cflags = implode(' ', $pc);
|
$pc_cflags = implode(' ', $pc);
|
||||||
if ($pc_cflags !== '' && ($pc_cflags = PkgConfigUtil::getCflags($pc_cflags)) !== '') {
|
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;
|
$includes[] = $pc_cflags;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user