Add suffix support for SPC_TARGET

This commit is contained in:
crazywhalecc
2025-06-28 23:13:40 +08:00
parent a6364389ba
commit 0598eff9c5
2 changed files with 9 additions and 1 deletions

View File

@@ -85,6 +85,14 @@ class SPCTarget
(new $toolchainClass())->afterInit(getenv('SPC_TARGET'));
}
public static function getTargetName(): ?string
{
$target = getenv('SPC_TARGET');
$target = strtolower($target);
// ver
return explode('@', $target)[0];
}
public static function getTargetSuffix(): ?string
{
$target = getenv('SPC_TARGET');