Skip to content

Commit

Permalink
Use all available CPUs to build cppcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
matt335672 committed Jun 23, 2023
1 parent d77b0b3 commit 1ac6206
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/install_cppcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ fi
fi
esac

# Use all available CPUs
if [ -f /proc/cpuinfo ]; then
cpus=`grep ^processor /proc/cpuinfo | wc -l`
if [ -n "$cpus" ]; then
make_args="$make_args -j $cpus"
fi
fi

echo "Making cppcheck..."
# CFGDIR is needed for cppcheck before 1.86
call_make $make_args
Expand Down

0 comments on commit 1ac6206

Please sign in to comment.