From cad3e88767052f2bf6f09f72d590cc316c8c1da9 Mon Sep 17 00:00:00 2001 From: Vlad Firoiu Date: Fri, 22 Mar 2024 18:13:51 +0000 Subject: [PATCH] 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. --- build-mac.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 build-mac.sh diff --git a/build-mac.sh b/build-mac.sh old mode 100644 new mode 100755 index 0856393caa56..9e83cd235497 --- a/build-mac.sh +++ b/build-mac.sh @@ -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