mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
Add linux-only for extra runtime objects
This commit is contained in:
parent
c9d33bffc8
commit
112f607d6e
@ -217,7 +217,11 @@ class Extension
|
|||||||
*/
|
*/
|
||||||
public function patchBeforeSharedMake(): bool
|
public function patchBeforeSharedMake(): bool
|
||||||
{
|
{
|
||||||
if (ToolchainManager::getToolchainClass() === ZigToolchain::class && ($extra = (new ZigToolchain())->getExtraRuntimeObjects())) {
|
if (
|
||||||
|
PHP_OS_FAMILY === 'Linux' &&
|
||||||
|
ToolchainManager::getToolchainClass() === ZigToolchain::class &&
|
||||||
|
($extra = (new ZigToolchain())->getExtraRuntimeObjects())
|
||||||
|
) {
|
||||||
FileSystem::replaceFileRegex(
|
FileSystem::replaceFileRegex(
|
||||||
$this->source_dir . '/Makefile',
|
$this->source_dir . '/Makefile',
|
||||||
"/^(shared_objects_{$this->getName()}\\s*=.*)$/m",
|
"/^(shared_objects_{$this->getName()}\\s*=.*)$/m",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user