mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
arch.sh: use nproc instead of grepping /proc/cpuinfo
This commit is contained in:
committed by
Daniel Agar
parent
be1f966e5f
commit
cefa7ec5dc
+1
-1
@@ -138,7 +138,7 @@ if [[ $INSTALL_SIM == "true" ]]; then
|
|||||||
;
|
;
|
||||||
|
|
||||||
# enable multicore gazebo compilation
|
# enable multicore gazebo compilation
|
||||||
sudo sed -i '/MAKEFLAGS=/c\MAKEFLAGS="-j'$(($(grep -c processor /proc/cpuinfo)+2))'"' /etc/makepkg.conf
|
sudo sed -i '/MAKEFLAGS=/c\MAKEFLAGS="-j'$(($(nproc)+2))'"' /etc/makepkg.conf
|
||||||
|
|
||||||
# install gazebo from AUR
|
# install gazebo from AUR
|
||||||
yay -S gazebo --noconfirm
|
yay -S gazebo --noconfirm
|
||||||
|
|||||||
Reference in New Issue
Block a user