mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Add more exception and log
This commit is contained in:
parent
ae23b721b3
commit
8cb93bc1fe
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -238,8 +238,8 @@ class BuildPHPCommand extends BuildCommand
|
||||
}
|
||||
if (!empty($shared_extensions)) {
|
||||
foreach ($shared_extensions as $ext) {
|
||||
$path = FileSystem::convertPath("{$build_root_path}/ext/{$ext}.so");
|
||||
logger()->info("Dynamic extension path{$fixed}: {$path}");
|
||||
$path = FileSystem::convertPath("{$build_root_path}/lib/{$ext}.so");
|
||||
logger()->info("Shared extension [{$ext}] path{$fixed}: {$path}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user