File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -72,12 +72,8 @@ public static function getDynamicExportedSymbols(string $lib_file): ?string
7272 if (!is_file ($ symbol_file )) {
7373 throw new SPCInternalException ("The symbol file {$ symbol_file } does not exist, please check if nm command is available. " );
7474 }
75- // https://github.com/ziglang/zig/issues/24662
76- if (ToolchainManager::getToolchainClass () === ZigToolchain::class) {
77- return '-Wl,--export-dynamic ' ;
78- }
79- // macOS
80- if (SPCTarget::getTargetOS () !== 'Linux ' ) {
75+ // macOS/zig
76+ if (SPCTarget::getTargetOS () !== 'Linux ' || ToolchainManager::getToolchainClass () === ZigToolchain::class) {
8177 return "-Wl,-exported_symbols_list, {$ symbol_file }" ;
8278 }
8379 return "-Wl,--dynamic-list= {$ symbol_file }" ;
You can’t perform that action at this time.
0 commit comments