Dockerfile: use number of make jobs based on nproc

This commit is contained in:
Adhityaa Chandrasekar
2018-08-08 11:15:02 +05:30
parent e87367d22f
commit c71d634e82
2 changed files with 6 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ ctrl_c() {
}
binary_pid=
if make -j8; then
if make -j$(($(nproc) + 1)); then
source devel.env
cd build/devel
./$binary_name &
@@ -50,7 +50,7 @@ while true; do
wait $binary_pid
fi
if make -j8; then
if make -j$(($(nproc) + 1)); then
source devel.env
cd build/devel
./$binary_name &