Skip to content

Commit 0fde4ce

Browse files
committed
remove old extension file before making new one
1 parent 056971f commit 0fde4ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SPC/builder/Extension.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ public function buildShared(): void
369369
*/
370370
public function buildUnixShared(): void
371371
{
372+
if (file_exists(BUILD_MODULES_PATH . '/' . $this->getName() . '.so')) {
373+
unlink(BUILD_MODULES_PATH . '/' . $this->getName() . '.so');
374+
}
372375
$config = (new SPCConfigUtil($this->builder))->config([$this->getName()], with_dependencies: true);
373376
[$staticLibString, $sharedLibString] = $this->getStaticAndSharedLibs();
374377

0 commit comments

Comments
 (0)