Skip to content

Commit c3b520c

Browse files
authored
Merge pull request #779 from crazywhalecc/docs
remove old extension file before building new php version
2 parents 80687df + 7f9da64 commit c3b520c

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
@@ -202,6 +202,8 @@ public function handle(): int
202202
// add static-php-cli.version to main.c, in order to debug php failure more easily
203203
SourcePatcher::patchSPCVersionToPHP($this->getApplication()->getVersion());
204204

205+
// clean old modules that may conflict with the new php build
206+
FileSystem::removeDir(BUILD_MODULES_PATH);
205207
// start to build
206208
$builder->buildPHP($rule);
207209

0 commit comments

Comments
 (0)