fix macos test

This commit is contained in:
DubbleClick 2025-07-02 14:26:15 +07:00
parent 4b38da76b1
commit 76b36cef35

View File

@ -362,7 +362,11 @@ abstract class UnixBuilderBase extends BuilderBase
->exec("xcaddy build --output frankenphp {$xcaddyModules}");
if (!$this->getOption('no-strip', false) && file_exists(BUILD_BIN_PATH . '/frankenphp')) {
shell()->cd(BUILD_BIN_PATH)->exec('strip --strip-all frankenphp');
if (PHP_OS_FAMILY === 'Linux') {
shell()->cd(BUILD_BIN_PATH)->exec('strip --strip-all frankenphp');
} else { // macOS doesn't understand strip-all
shell()->cd(BUILD_BIN_PATH)->exec('strip -S frankenphp');
}
}
}
}