Skip to content

Commit 7f9da64

Browse files
committed
remove old extension file before building new php version
1 parent 056971f commit 7f9da64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/SPC/command/BuildPHPCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ public function handle(): int
207207
// add static-php-cli.version to main.c, in order to debug php failure more easily
208208
SourcePatcher::patchSPCVersionToPHP($this->getApplication()->getVersion());
209209

210+
// clean old modules that may conflict with the new php build
211+
FileSystem::removeDir(BUILD_MODULES_PATH);
210212
// start to build
211213
$builder->buildPHP($rule);
212214

0 commit comments

Comments
 (0)