From 0d408e0df1d964218054bff207de1e43489c0b39 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Wed, 23 Jul 2025 00:38:36 +0800 Subject: [PATCH] Allow empty target --- src/SPC/util/SPCTarget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SPC/util/SPCTarget.php b/src/SPC/util/SPCTarget.php index 071f2620..b674379e 100644 --- a/src/SPC/util/SPCTarget.php +++ b/src/SPC/util/SPCTarget.php @@ -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?