mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-05 15:55:39 +08:00
Add suffix support for SPC_TARGET
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user