Fix shared extension does not build bug

This commit is contained in:
crazywhalecc 2025-03-26 12:38:59 +08:00
parent df06a4bb2c
commit ae23b721b3
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -202,12 +202,12 @@ abstract class BuilderBase
$class = CustomExt::getExtClass($extension);
/** @var Extension $ext */
$ext = new $class($extension, $this);
$this->addExt($ext);
if (in_array($extension, $shared_build_extensions)) {
$ext->setBuildShared();
} else {
$ext->setBuildStatic();
}
$this->addExt($ext);
}
if ($skip_check_deps) {