Skip to content

Commit

Permalink
dev/build.sh: control build jobs with $ALIRE_BUILD_JOBS (#1651)
Browse files Browse the repository at this point in the history
This is just a minor quality-of-life improvement for packaging. Note
that this also quotes the argument to echo so that if (somehow)
$ALIRE_OS were set to a malicious value, no harm could be done.
  • Loading branch information
atalii authored and mosteo committed Mar 20, 2024
1 parent ce32ef3 commit 8c46f46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dev/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ pushd $( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) > /de
. functions.sh
popd > /dev/null

ALIRE_BUILD_JOBS="${ALIRE_BUILD_JOBS:-0}"
export ALIRE_OS=$(get_OS)

echo Building with ALIRE_OS=$ALIRE_OS...
gprbuild -j0 -r -p -P `dirname $0`/../alr_env.gpr "$@"
echo "Building with ALIRE_OS=$ALIRE_OS..."
gprbuild "-j$ALIRE_BUILD_JOBS" -r -p -P `dirname $0`/../alr_env.gpr "$@"

0 comments on commit 8c46f46

Please sign in to comment.