Skip to content

Commit 16e772e

Browse files
committed
add back in zig workaround as 0.16.x is not released yet
1 parent 8c4e3d5 commit 16e772e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/SPC/builder/traits/UnixSystemUtilTrait.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ 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'; // needs release 0.16, can be removed then
78+
}
7579
// macOS/zig
7680
if (SPCTarget::getTargetOS() !== 'Linux' || ToolchainManager::getToolchainClass() === ZigToolchain::class) {
7781
return "-Wl,-exported_symbols_list,{$symbol_file}";

0 commit comments

Comments
 (0)