mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
Allow empty target
This commit is contained in:
parent
b5ceda5955
commit
0d408e0df1
@ -73,7 +73,7 @@ class SPCTarget
|
||||
public static function getTargetOS(): string
|
||||
{
|
||||
$target = getenv('SPC_TARGET');
|
||||
if ($target === false) {
|
||||
if ($target === false || $target === '') {
|
||||
return PHP_OS_FAMILY;
|
||||
}
|
||||
// TODO: zig target parser like below?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user