Skip to content

Commit 4a2b28e

Browse files
committed
fix isStatic detection for native-native
1 parent 6355a97 commit 4a2b28e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/SPC/util/SPCTarget.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ public static function isStatic(): bool
3434
if (str_contains($target, '-dynamic')) {
3535
return false;
3636
}
37+
if (str_contains($target, '-musl')) {
38+
return false;
39+
}
40+
if (PHP_OS_FAMILY === 'Linux') {
41+
return SystemUtil::isMuslDist();
42+
}
3743
return true;
3844
}
3945
if (getenv('SPC_LIBC') === 'musl') {

0 commit comments

Comments
 (0)