mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +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
|
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;
|
$this->build_static = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -238,8 +238,8 @@ class BuildPHPCommand extends BuildCommand
|
|||||||
}
|
}
|
||||||
if (!empty($shared_extensions)) {
|
if (!empty($shared_extensions)) {
|
||||||
foreach ($shared_extensions as $ext) {
|
foreach ($shared_extensions as $ext) {
|
||||||
$path = FileSystem::convertPath("{$build_root_path}/ext/{$ext}.so");
|
$path = FileSystem::convertPath("{$build_root_path}/lib/{$ext}.so");
|
||||||
logger()->info("Dynamic extension path{$fixed}: {$path}");
|
logger()->info("Shared extension [{$ext}] path{$fixed}: {$path}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user