mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
don't download musl if zig isn't building for musl
This commit is contained in:
parent
90981e3877
commit
5606b70c1c
@ -22,7 +22,7 @@ class LinuxMuslCheck
|
||||
public static function optionalCheck(): bool
|
||||
{
|
||||
return getenv('SPC_TOOLCHAIN') === MuslToolchain::class ||
|
||||
(getenv('SPC_TOOLCHAIN') === ZigToolchain::class && !SystemUtil::isMuslDist());
|
||||
(getenv('SPC_TOOLCHAIN') === ZigToolchain::class && !SystemUtil::isMuslDist() && !str_contains((string) getenv('SPC_TARGET'), 'gnu'));
|
||||
}
|
||||
|
||||
/** @noinspection PhpUnused */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user