mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Call export in dynamic symbol getter
This commit is contained in:
parent
465bd3ce85
commit
08a68796bf
@ -5,6 +5,7 @@ declare(strict_types=1);
|
||||
namespace SPC\builder\traits;
|
||||
|
||||
use SPC\exception\ExecutionException;
|
||||
use SPC\exception\SPCInternalException;
|
||||
use SPC\exception\WrongUsageException;
|
||||
use SPC\toolchain\ToolchainManager;
|
||||
use SPC\toolchain\ZigToolchain;
|
||||
@ -66,7 +67,10 @@ trait UnixSystemUtilTrait
|
||||
{
|
||||
$symbol_file = "{$lib_file}.dynsym";
|
||||
if (!is_file($symbol_file)) {
|
||||
return null;
|
||||
self::exportDynamicSymbols($lib_file);
|
||||
}
|
||||
if (!is_file($symbol_file)) {
|
||||
throw new SPCInternalException("The symbol file {$symbol_file} does not exist, please check if nm command is available.");
|
||||
}
|
||||
// https://github.com/ziglang/zig/issues/24662
|
||||
if (ToolchainManager::getToolchainClass() === ZigToolchain::class) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user