Use isStatic instead of isStaticTarget

This commit is contained in:
crazywhalecc
2025-06-29 22:49:48 +08:00
parent 956688d9f4
commit e1e48922de
8 changed files with 9 additions and 9 deletions

View File

@@ -64,7 +64,7 @@ class BuildPHPCommand extends BuildCommand
// check dynamic extension build env
// linux must build with glibc
if (!empty($shared_extensions) && SPCTarget::isStaticTarget()) {
if (!empty($shared_extensions) && SPCTarget::isStatic()) {
$this->output->writeln('Linux does not support dynamic extension loading with musl-libc full-static build, please build with shared target!');
return static::FAILURE;
}