mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-12 11:25:35 +08:00
Refactor LinuxMuslCheck to use MuslToolchain class for toolchain check
This commit is contained in:
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user