Skip to content

Commit 34910d1

Browse files
committed
add patch point for shared ext build
1 parent 3a17cec commit 34910d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/SPC/builder/Extension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,10 +401,12 @@ public function buildShared(array $visited = []): void
401401
if (Config::getExt($this->getName(), 'type') === 'addon') {
402402
return;
403403
}
404+
$this->builder->emitPatchPoint('before-shared-ext[' . $this->getName() . ']-build');
404405
match (PHP_OS_FAMILY) {
405406
'Darwin', 'Linux' => $this->buildUnixShared(),
406407
default => throw new WrongUsageException(PHP_OS_FAMILY . ' build shared extensions is not supported yet'),
407408
};
409+
$this->builder->emitPatchPoint('after-shared-ext[' . $this->getName() . ']-build');
408410
} catch (SPCException $e) {
409411
$e->bindExtensionInfo(['extension_name' => $this->getName()]);
410412
throw $e;

0 commit comments

Comments
 (0)