diff --git a/src/Php/CompilerBase.php b/src/Php/CompilerBase.php index 9bb049ba..021d688d 100644 --- a/src/Php/CompilerBase.php +++ b/src/Php/CompilerBase.php @@ -300,10 +300,6 @@ class CompilerBase extends \PhpAot\Core\Translator $this->setBuildDir($rootPath . '/build'); $climate = new CLImate(); $this->climate = $climate; - // $this->noLiteralStrings = $climate->arguments->get('no-literal-strings'); - - // 检测操作系统、编译器以及 Windows 平台的 PHP lib 文件 - $this->detectPlatform(); } /** diff --git a/src/Php/Translator.php b/src/Php/Translator.php index fb4ce92e..40463a2d 100644 --- a/src/Php/Translator.php +++ b/src/Php/Translator.php @@ -68,6 +68,10 @@ class Translator extends Preprocessor $this->showVersion(); exit(0); } + + + // 检测操作系统、编译器以及 Windows 平台的 PHP lib 文件 + $this->detectPlatform(); } public function showUsage(): void