mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 14:25:41 +08:00
fix isStatic detection for native-native
This commit is contained in:
@@ -34,6 +34,12 @@ class SPCTarget
|
||||
if (str_contains($target, '-dynamic')) {
|
||||
return false;
|
||||
}
|
||||
if (str_contains($target, '-musl')) {
|
||||
return false;
|
||||
}
|
||||
if (PHP_OS_FAMILY === 'Linux') {
|
||||
return SystemUtil::isMuslDist();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (getenv('SPC_LIBC') === 'musl') {
|
||||
|
||||
Reference in New Issue
Block a user