We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a2b28e commit f6a1065Copy full SHA for f6a1065
src/SPC/util/SPCTarget.php
@@ -60,17 +60,17 @@ public static function getLibc(): ?string
60
if (str_contains($target, '-musl')) {
61
return 'musl';
62
}
63
- if (str_contains($target, '-linux')) {
64
- return 'musl';
65
- }
66
- if (PHP_OS_FAMILY === 'Linux' && str_contains($target, '-native')) {
67
+ if (PHP_OS_FAMILY === 'Linux') {
+ return SystemUtil::isMuslDist() ? 'musl' : 'glibc';
68
69
70
$libc = getenv('SPC_LIBC');
71
if ($libc !== false) {
72
return $libc;
73
+ }
74
return null;
75
76
0 commit comments