From b698ae2f506804b3793dcd6b7533b54e7d55adfe Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Thu, 27 Jul 2023 18:42:05 +0800 Subject: [PATCH] add strip option (fix #97) --- src/SPC/command/BuildCliCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SPC/command/BuildCliCommand.php b/src/SPC/command/BuildCliCommand.php index 6aad5509..298c0aa9 100644 --- a/src/SPC/command/BuildCliCommand.php +++ b/src/SPC/command/BuildCliCommand.php @@ -71,7 +71,7 @@ class BuildCliCommand extends BuildCommand // 执行扩展检测 $builder->proveExts($extensions); // strip - $builder->setStrip(false); + $builder->setStrip(!$this->getOption('no-strip')); // 构建 $builder->buildPHP($rule, $this->getOption('bloat')); // 统计时间