Skip to content

Commit e0c6908

Browse files
authored
don't download musl if zig isn't building for musl (#972)
2 parents 28ae424 + 5606b70 commit e0c6908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SPC/doctor/item/LinuxMuslCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class LinuxMuslCheck
2222
public static function optionalCheck(): bool
2323
{
2424
return getenv('SPC_TOOLCHAIN') === MuslToolchain::class ||
25-
(getenv('SPC_TOOLCHAIN') === ZigToolchain::class && !SystemUtil::isMuslDist());
25+
(getenv('SPC_TOOLCHAIN') === ZigToolchain::class && !SystemUtil::isMuslDist() && !str_contains((string) getenv('SPC_TARGET'), 'gnu'));
2626
}
2727

2828
/** @noinspection PhpUnused */

0 commit comments

Comments
 (0)