fix bugs when building micro and embed at the same time

This commit is contained in:
crazywhalecc
2023-10-01 01:32:43 +08:00
committed by Jerry Ma
parent 8636f2e7c9
commit 92cafb36f6
3 changed files with 10 additions and 0 deletions

View File

@@ -141,6 +141,8 @@ class SourcePatcher
}
FileSystem::replaceFileRegex(SOURCE_PATH . '/php-src/main/php_config.h', '/^#define HAVE_OPENPTY 1$/m', '');
FileSystem::replaceFileStr(SOURCE_PATH . '/php-src/Makefile', 'install-micro', '');
// call extension patch before make
foreach ($builder->getExts() as $ext) {
if ($ext->patchBeforeMake() === true) {