Dockerfile: use number of make jobs based on nproc

This commit is contained in:
Adhityaa Chandrasekar committed 2018-08-08 11:15:05 +05:30
1 parent e87367d22f
commit c71d634e82
2 files changed
+6 -6

No files matched your search

+2 -2
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 &