Skip to content

Commit 112f607

Browse files
committed
Add linux-only for extra runtime objects
1 parent c9d33bf commit 112f607

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/SPC/builder/Extension.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,11 @@ public function patchBeforeSharedConfigure(): bool
217217
*/
218218
public function patchBeforeSharedMake(): bool
219219
{
220-
if (ToolchainManager::getToolchainClass() === ZigToolchain::class && ($extra = (new ZigToolchain())->getExtraRuntimeObjects())) {
220+
if (
221+
PHP_OS_FAMILY === 'Linux' &&
222+
ToolchainManager::getToolchainClass() === ZigToolchain::class &&
223+
($extra = (new ZigToolchain())->getExtraRuntimeObjects())
224+
) {
221225
FileSystem::replaceFileRegex(
222226
$this->source_dir . '/Makefile',
223227
"/^(shared_objects_{$this->getName()}\\s*=.*)$/m",

0 commit comments

Comments
 (0)