restore buildphp command

This commit is contained in:
henderkes
2025-05-18 08:57:07 +07:00
parent eab8c27e4a
commit f88c10d4aa
3 changed files with 21 additions and 12 deletions

View File

@@ -188,6 +188,16 @@ class Extension
return false;
}
/**
* Patch code before shared extension ./configure
* If you need to patch some code, overwrite this
* return true if you patched something, false if not
*/
public function patchBeforeSharedBuild(): bool
{
return false;
}
/**
* Run shared extension check when cli is enabled
* @throws RuntimeException
@@ -423,14 +433,4 @@ class Extension
return $deps;
}
/**
* Patch code before shared extension ./configure
* If you need to patch some code, overwrite this
* return true if you patched something, false if not
*/
public function patchBeforeSharedBuild(): bool
{
return false;
}
}

View File

@@ -208,7 +208,7 @@ class BuildPHPCommand extends BuildCommand
SourcePatcher::patchSPCVersionToPHP($this->getApplication()->getVersion());
// start to build
// $builder->buildPHP($rule);
$builder->buildPHP($rule);
SourcePatcher::patchBeforeSharedBuild($builder);