Skip to content

Commit 6dd5023

Browse files
alokKha
andauthored
chore: add parallelism fallback for macOS on build (leanprover#4647)
1 less thing to think about. --------- Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch>
1 parent bcbd729 commit 6dd5023

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/make/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ Setting up a basic parallelized release build:
2727
git clone https://github.com/leanprover/lean4
2828
cd lean4
2929
cmake --preset release
30-
make -C build/release -j$(nproc) # see below for macOS
30+
make -C build/release -j$(nproc || sysctl -n hw.logicalcpu)
3131
```
32-
You can replace `$(nproc)`, which is not available on macOS and some alternative shells, with the desired parallelism amount.
32+
You can replace `$(nproc || sysctl -n hw.logicalcpu)` with the desired parallelism amount.
3333

3434
The above commands will compile the Lean library and binaries into the
3535
`stage1` subfolder; see below for details.

0 commit comments

Comments
 (0)