mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-23 00:35:38 +08:00
fix native chain
This commit is contained in:
@@ -47,7 +47,7 @@ class SPCTarget
|
||||
*/
|
||||
public static function getLibc(): ?string
|
||||
{
|
||||
$target = getenv('SPC_TARGET');
|
||||
if ($target = getenv('SPC_TARGET')) {
|
||||
if (str_contains($target, '-gnu')) {
|
||||
return 'glibc';
|
||||
}
|
||||
@@ -60,6 +60,7 @@ class SPCTarget
|
||||
if (PHP_OS_FAMILY === 'Linux' && str_contains($target, '-native')) {
|
||||
return 'musl';
|
||||
}
|
||||
}
|
||||
$libc = getenv('SPC_LIBC');
|
||||
if ($libc !== false) {
|
||||
return $libc;
|
||||
|
||||
Reference in New Issue
Block a user