add frankenphp sapi

This commit is contained in:
DubbleClick
2025-06-18 10:48:09 +07:00
parent 57b22782d3
commit c1870af1b1
10 changed files with 151 additions and 3 deletions

View File

@@ -114,6 +114,7 @@ class LinuxBuilder extends UnixBuilderBase
$enable_fpm = ($build_target & BUILD_TARGET_FPM) === BUILD_TARGET_FPM;
$enable_micro = ($build_target & BUILD_TARGET_MICRO) === BUILD_TARGET_MICRO;
$enable_embed = ($build_target & BUILD_TARGET_EMBED) === BUILD_TARGET_EMBED;
$enable_frankenphp = ($build_target & BUILD_TARGET_FRANKENPHP) === BUILD_TARGET_FRANKENPHP;
$mimallocLibs = $this->getLib('mimalloc') !== null ? BUILD_LIB_PATH . '/mimalloc.o ' : '';
// prepare build php envs
@@ -175,6 +176,10 @@ class LinuxBuilder extends UnixBuilderBase
}
$this->buildEmbed();
}
if ($enable_frankenphp) {
logger()->info('building frankenphp');
$this->buildFrankenphp();
}
}
public function testPHP(int $build_target = BUILD_TARGET_NONE)