Skip to content

Commit 2cc75ff

Browse files
authored
兼容macos-12 (#1058)
1 parent b21c622 commit 2cc75ff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sapi/src/template/make.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
PREPARE_ARGS="<?= implode(' ', $this->getPrepareArgs())?>"
1717
export LOGICAL_PROCESSORS=<?= trim($this->logicalProcessors). PHP_EOL ?>
1818
export CMAKE_BUILD_PARALLEL_LEVEL=<?= $this->maxJob. PHP_EOL ?>
19-
19+
<?php if ($this->isMacos()) :?>
20+
# 兼容 最低 macOS 版本
21+
export MACOSX_DEPLOYMENT_TARGET=12.0
22+
<?php endif; ?>
2023
export CC=<?= $this->cCompiler . PHP_EOL ?>
2124
export CXX=<?= $this->cppCompiler . PHP_EOL ?>
2225
export LD=<?= $this->lld . PHP_EOL ?>

0 commit comments

Comments
 (0)