mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-16 19:14:18 +01:00
Merge pull request #294 from aktau/osx-ncpu
linux: build.sh: get number of CPUs on OSX too
This commit is contained in:
commit
31a62c18be
1 file changed
+7
-1
@@ -87,7 +87,13 @@ else
|
||||
cmake "${flags[@]}" $root 2>&1 | tee -a $log
|
||||
fi
|
||||
|
||||
make -j "$(grep -w -c processor /proc/cpuinfo)" 2>&1 | tee -a $log
|
||||
if [[ $(uname -s) == 'Darwin' ]]; then
|
||||
ncpu=$(sysctl -n hw.ncpu)
|
||||
else
|
||||
ncpu=$(grep -w -c processor /proc/cpuinfo)
|
||||
fi
|
||||
|
||||
make -j"$ncpu" 2>&1 | tee -a $log
|
||||
make install 2>&1 | tee -a $log
|
||||
|
||||
exit 0
|
||||
Reference in new issue
Block a user