mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
fix isStatic detection for native-native
This commit is contained in:
parent
6355a97b47
commit
4a2b28e88c
@ -34,6 +34,12 @@ class SPCTarget
|
|||||||
if (str_contains($target, '-dynamic')) {
|
if (str_contains($target, '-dynamic')) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (str_contains($target, '-musl')) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (PHP_OS_FAMILY === 'Linux') {
|
||||||
|
return SystemUtil::isMuslDist();
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (getenv('SPC_LIBC') === 'musl') {
|
if (getenv('SPC_LIBC') === 'musl') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user