Skip to content

Commit

Permalink
always announce the number of cores in use
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Sep 20, 2023
1 parent 2151898 commit 22c4f82
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,18 @@ else
fi
export LD_LIBRARY_PATH

if [ "x${GERBIL_BUILD_FLAGS:-}" != "x" ];then
if [ "x${GERBIL_BUILD_FLAGS:-}" != "x" ]; then
num_cores=$(build_flags_cores "${GERBIL_BUILD_FLAGS}")
if [ "x${num_cores:-}" != "x" ]; then
echo "using ${num_cores} cores for the build"
GERBIL_BUILD_CORES=${num_cores}
export GERBIL_BUILD_CORES
fi
fi

if [ "x${GERBIL_BUILD_CORES:-}" != "x" ]; then
echo "using ${GERBIL_BUILD_CORES} cores for the build"
fi

#===============================================================================
## feedback
feedback_err() {
Expand Down

0 comments on commit 22c4f82

Please sign in to comment.