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 8c4e3d5 commit 16e772eCopy full SHA for 16e772e
src/SPC/builder/traits/UnixSystemUtilTrait.php
@@ -72,6 +72,10 @@ 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'; // needs release 0.16, can be removed then
78
+ }
79
// macOS/zig
80
if (SPCTarget::getTargetOS() !== 'Linux' || ToolchainManager::getToolchainClass() === ZigToolchain::class) {
81
return "-Wl,-exported_symbols_list,{$symbol_file}";
0 commit comments