simplify hasCppExtension() method

This commit is contained in:
crazywhalecc 2023-10-14 14:06:09 +08:00 committed by Jerry Ma
parent ed53394389
commit e9d3e48f90

View File

@ -148,14 +148,12 @@ abstract class BuilderBase
{
// judge cpp-extension
$exts = array_keys($this->getExts());
$cpp = false;
foreach ($exts as $ext) {
if (Config::getExt($ext, 'cpp-extension', false) === true) {
$cpp = true;
break;
return true;
}
}
return $cpp;
return false;
}
/**