From e70f5252a1f8077aa12c3e1b7fb040a12deca2a9 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Wed, 29 Apr 2026 15:42:07 +0800 Subject: [PATCH] remove workaround for zig < 0.16 (forward-port #1105) --- src/StaticPHP/Util/System/UnixUtil.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/StaticPHP/Util/System/UnixUtil.php b/src/StaticPHP/Util/System/UnixUtil.php index 4a41c524..eb475ba7 100644 --- a/src/StaticPHP/Util/System/UnixUtil.php +++ b/src/StaticPHP/Util/System/UnixUtil.php @@ -4,13 +4,10 @@ declare(strict_types=1); namespace StaticPHP\Util\System; -use StaticPHP\DI\ApplicationContext; use StaticPHP\Exception\ExecutionException; use StaticPHP\Exception\SPCInternalException; use StaticPHP\Exception\WrongUsageException; use StaticPHP\Runtime\SystemTarget; -use StaticPHP\Toolchain\Interface\ToolchainInterface; -use StaticPHP\Toolchain\ZigToolchain; abstract class UnixUtil { @@ -73,11 +70,6 @@ abstract class UnixUtil if (!is_file($symbol_file)) { throw new SPCInternalException("The symbol file {$symbol_file} does not exist, please check if nm command is available."); } - // https://github.com/ziglang/zig/issues/24662 - $toolchain = ApplicationContext::get(ToolchainInterface::class); - if ($toolchain instanceof ZigToolchain) { - return '-Wl,--export-dynamic'; // needs release 0.16, can be removed then - } if (SystemTarget::getTargetOS() !== 'Linux') { return "-Wl,-exported_symbols_list,{$symbol_file}"; }