Allow empty target

This commit is contained in:
crazywhalecc 2025-07-23 00:38:36 +08:00
parent b5ceda5955
commit 0d408e0df1
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -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?