apply suggestions

This commit is contained in:
DubbleClick
2025-06-06 23:49:58 +07:00
parent b6a1182876
commit a68212672b
8 changed files with 17 additions and 64 deletions

View File

@@ -109,18 +109,6 @@ class LinuxBuilder extends UnixBuilderBase
*/
public function buildPHP(int $build_target = BUILD_TARGET_NONE): void
{
if ($build_target === BUILD_TARGET_EMBED &&
file_exists(BUILD_BIN_PATH . '/php-config') &&
file_exists(BUILD_BIN_PATH . '/phpize')
) {
$embed_type = getenv('SPC_CMD_VAR_PHP_EMBED_TYPE') ?: 'static';
if ($embed_type === 'shared' && file_exists(BUILD_LIB_PATH . '/libphp.so')) {
return;
}
if (file_exists(BUILD_LIB_PATH . '/libphp.a')) {
return;
}
}
// ---------- Update extra-libs ----------
$extra_libs = getenv('SPC_EXTRA_LIBS') ?: '';
// bloat means force-load all static libraries, even if they are not used