mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-22 10:19:01 +00:00
build(macOS): correctly set number of threads for building (#20)
The current value $(nproc) only works on Linux and defaults to empty string on macos, which results in unlimited paralellism and likely a system OOM.
This commit is contained in:
parent
4a06679391
commit
cad3e88767
1 changed files with 1 additions and 1 deletions
2
build-mac.sh
Normal file → Executable file
2
build-mac.sh
Normal file → Executable file
|
@ -24,5 +24,5 @@ fi
|
|||
mkdir -p build
|
||||
pushd build
|
||||
cmake ${CMAKE_FLAGS} ..
|
||||
cmake --build . --target dolphin-emu -- -j$(nproc)
|
||||
cmake --build . --target dolphin-emu -- -j$(sysctl -n hw.ncpu)
|
||||
popd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue