Skip to content

Commit

Permalink
build(macOS): correctly set number of threads for building (#20)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vladfi1 authored Mar 22, 2024
1 parent 4a06679 commit cad3e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-mac.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cad3e88

Please sign in to comment.