Skip to content

Commit

Permalink
Add macOS config file path option
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywhalecc committed Oct 12, 2024
1 parent 9f6fe00 commit e6fd8d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SPC/builder/macos/MacOSBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ public function buildPHP(int $build_target = BUILD_TARGET_NONE): void
$json_74 = $this->getPHPVersionID() < 80000 ? '--enable-json ' : '';
$zts = $this->getOption('enable-zts', false) ? '--enable-zts --disable-zend-signals ' : '';

$config_file_path = $this->getOption('with-config-file-path', false) ?
('--with-config-file-path=' . $this->getOption('with-config-file-path') . ' ') : '';

$enableCli = ($build_target & BUILD_TARGET_CLI) === BUILD_TARGET_CLI;
$enableFpm = ($build_target & BUILD_TARGET_FPM) === BUILD_TARGET_FPM;
$enableMicro = ($build_target & BUILD_TARGET_MICRO) === BUILD_TARGET_MICRO;
Expand Down Expand Up @@ -164,6 +167,7 @@ public function buildPHP(int $build_target = BUILD_TARGET_NONE): void
($enableFpm ? '--enable-fpm ' : '--disable-fpm ') .
($enableEmbed ? '--enable-embed=static ' : '--disable-embed ') .
($enableMicro ? '--enable-micro ' : '--disable-micro ') .
$config_file_path .
$json_74 .
$zts .
$this->makeExtensionArgs() . ' ' .
Expand Down

0 comments on commit e6fd8d5

Please sign in to comment.