mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-20 23:35:37 +08:00
Allow empty target
This commit is contained in:
@@ -73,7 +73,7 @@ class SPCTarget
|
|||||||
public static function getTargetOS(): string
|
public static function getTargetOS(): string
|
||||||
{
|
{
|
||||||
$target = getenv('SPC_TARGET');
|
$target = getenv('SPC_TARGET');
|
||||||
if ($target === false) {
|
if ($target === false || $target === '') {
|
||||||
return PHP_OS_FAMILY;
|
return PHP_OS_FAMILY;
|
||||||
}
|
}
|
||||||
// TODO: zig target parser like below?
|
// TODO: zig target parser like below?
|
||||||
|
|||||||
Reference in New Issue
Block a user