don't pass --build-shared when not using zig toolchain

This commit is contained in:
DubbleClick 2025-07-03 12:26:11 +07:00
parent 20c4056561
commit 6355a97b47

View File

@ -159,7 +159,7 @@ if ($shared_extensions) {
case 'ubuntu-24.04':
case 'ubuntu-24.04-arm':
putenv('SPC_TARGET=native-native');
if (!str_contains((string) getenv('SPC_TARGET'), '-musl')) {
if (getenv('SPC_TARGET') && !str_contains((string) getenv('SPC_TARGET'), '-musl')) {
$shared_cmd = ' --build-shared=' . quote2($shared_extensions) . ' ';
}
break;