We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 465bd3c commit 08a6879Copy full SHA for 08a6879
1 file changed
src/SPC/builder/traits/UnixSystemUtilTrait.php
@@ -5,6 +5,7 @@
5
namespace SPC\builder\traits;
6
7
use SPC\exception\ExecutionException;
8
+use SPC\exception\SPCInternalException;
9
use SPC\exception\WrongUsageException;
10
use SPC\toolchain\ToolchainManager;
11
use SPC\toolchain\ZigToolchain;
@@ -66,7 +67,10 @@ public static function getDynamicExportedSymbols(string $lib_file): ?string
66
67
{
68
$symbol_file = "{$lib_file}.dynsym";
69
if (!is_file($symbol_file)) {
- 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.");
74
}
75
// https://github.com/ziglang/zig/issues/24662
76
if (ToolchainManager::getToolchainClass() === ZigToolchain::class) {
0 commit comments