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

@@ -534,7 +534,7 @@ class Extension
}
}
// move static libstdc++ to shared if we are on non-full-static build target
if (!SPCTarget::isStaticTarget() && in_array(SPCTarget::getLibc(), SPCTarget::LIBC_LIST)) {
if (!SPCTarget::isStatic() && in_array(SPCTarget::getLibc(), SPCTarget::LIBC_LIST)) {
$staticLibString .= ' -lstdc++';
$sharedLibString = str_replace('-lstdc++', '', $sharedLibString);
}