File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 55namespace SPC \builder \traits ;
66
77use SPC \exception \ExecutionException ;
8+ use SPC \exception \SPCInternalException ;
89use SPC \exception \WrongUsageException ;
910use SPC \toolchain \ToolchainManager ;
1011use SPC \toolchain \ZigToolchain ;
@@ -66,7 +67,10 @@ public static function getDynamicExportedSymbols(string $lib_file): ?string
6667 {
6768 $ symbol_file = "{$ lib_file }.dynsym " ;
6869 if (!is_file ($ symbol_file )) {
69- return null ;
70+ self ::exportDynamicSymbols ($ lib_file );
71+ }
72+ if (!is_file ($ symbol_file )) {
73+ throw new SPCInternalException ("The symbol file {$ symbol_file } does not exist, please check if nm command is available. " );
7074 }
7175 // https://github.com/ziglang/zig/issues/24662
7276 if (ToolchainManager::getToolchainClass () === ZigToolchain::class) {
You can’t perform that action at this time.
0 commit comments