Install gprbuild when necessary (#469)

This commit is contained in:
Alejandro R Mosteo
2022-03-03 15:04:34 +01:00
committed by GitHub
parent 6cd17a6d23
commit 3cbc2a8582
+6
View File
@@ -112,6 +112,12 @@ for file in $CHANGES; do
echo No need to update system repositories
fi
# Install an Alire-provided gprbuild whenever there is a non-external gnat in solution
if grep -iq 'gnat_' <<< $solution && ! grep -iq 'gnat_external' <<< $solution; then
echo "INSTALLING indexed gprbuild"
alr toolchain --select gprbuild
fi
# Detect whether the crate is binary to skip build
is_binary=false
if grep -iq 'binary archive' <<< $crateinfo; then