From 593c6ec2a52bb1cefc9558728b22a90135579ea0 Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Wed, 3 Jun 2026 19:45:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(compiler):=20=E6=B7=BB=E5=8A=A0=E5=86=85?= =?UTF-8?q?=E7=BD=AE=20mpdecimal=20=E5=A4=B4=E6=96=87=E4=BB=B6=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 mpdecimal C 库头文件路径到编译器包含路径 - 添加 mpdecimal++ C++ 库头文件路径到编译器包含路径 - 支持在 Linux/macOS 平台下自动配置 mpdecimal 依赖库路径 --- src/Php/CompilerBase.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Php/CompilerBase.php b/src/Php/CompilerBase.php index 62b74fc1..7c99de38 100644 --- a/src/Php/CompilerBase.php +++ b/src/Php/CompilerBase.php @@ -2742,6 +2742,9 @@ class CompilerBase extends \PhpAot\Core\Translator // Linux/macOS $phpPaths = $platform->buildPhpIncludePaths($this->getPhpDir()); $includePaths = array_merge($includePaths, $phpPaths); + // 内置 mpdecimal 头文件目录 + $includePaths[] = $this->getPhpxDir() . '/thirdparty/mpdecimal/libmpdec'; + $includePaths[] = $this->getPhpxDir() . '/thirdparty/mpdecimal/libmpdec++'; } return $includePaths;