mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
Refactor LinuxMuslCheck to use MuslToolchain class for toolchain check
This commit is contained in:
parent
e5848086c3
commit
44c6d6288e
@ -16,13 +16,14 @@ use SPC\store\Downloader;
|
|||||||
use SPC\store\FileSystem;
|
use SPC\store\FileSystem;
|
||||||
use SPC\store\PackageManager;
|
use SPC\store\PackageManager;
|
||||||
use SPC\store\SourcePatcher;
|
use SPC\store\SourcePatcher;
|
||||||
|
use SPC\toolchain\MuslToolchain;
|
||||||
|
|
||||||
#[OptionalCheck([self::class, 'optionalCheck'])]
|
#[OptionalCheck([self::class, 'optionalCheck'])]
|
||||||
class LinuxMuslCheck
|
class LinuxMuslCheck
|
||||||
{
|
{
|
||||||
public static function optionalCheck(): bool
|
public static function optionalCheck(): bool
|
||||||
{
|
{
|
||||||
return getenv('SPC_TOOLCHAIN') === 'musl';
|
return getenv('SPC_TOOLCHAIN') === MuslToolchain::class;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @noinspection PhpUnused */
|
/** @noinspection PhpUnused */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user