Add more exception and log

This commit is contained in:
crazywhalecc
2025-03-26 12:39:15 +08:00
parent ae23b721b3
commit 8cb93bc1fe
2 changed files with 5 additions and 2 deletions

View File

@@ -303,6 +303,9 @@ class Extension
public function setBuildStatic(): void
{
if (!in_array('static', Config::getExtTarget($this->name))) {
throw new WrongUsageException("Extension [{$this->name}] does not support static build !");
}
$this->build_static = true;
}