update default env (shouldn't we pass -fpic to default c flags on macos?)

This commit is contained in:
DubbleClick
2025-06-12 11:40:32 +07:00
parent 01ab0d3530
commit d9f7aa760e
2 changed files with 5 additions and 5 deletions

View File

@@ -151,7 +151,7 @@ abstract class UnixBuilderBase extends BuilderBase
protected function sanityCheck(int $build_target): void
{
// sanity check for php-cli
if (($build_target & BUILD_TARGET_CLI) === BUILD_TARGET_CLI || file_exists(BUILD_BIN_PATH . '/php')) {
if (($build_target & BUILD_TARGET_CLI) === BUILD_TARGET_CLI) {
logger()->info('running cli sanity check');
[$ret, $output] = shell()->execWithResult(BUILD_BIN_PATH . '/php -n -r "echo \"hello\";"');
$raw_output = implode('', $output);