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 0b863cb commit 19f9417Copy full SHA for 19f9417
1 file changed
src/SPC/builder/traits/UnixSystemUtilTrait.php
@@ -72,12 +72,8 @@ public static function getDynamicExportedSymbols(string $lib_file): ?string
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) {
77
- return '-Wl,--export-dynamic';
78
- }
79
- // macOS
80
- if (SPCTarget::getTargetOS() !== 'Linux') {
+ // macOS/zig
+ if (SPCTarget::getTargetOS() !== 'Linux' || ToolchainManager::getToolchainClass() === ZigToolchain::class) {
81
return "-Wl,-exported_symbols_list,{$symbol_file}";
82
83
return "-Wl,--dynamic-list={$symbol_file}";
0 commit comments