Skip to content

Commit

Permalink
ci: add missing CFLAGS variable to print_environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasnick committed Nov 17, 2022
1 parent 1c820cd commit 28fa827
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ci/cirrus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ print_environment() {
do
eval 'printf "%s %s " "$i=\"${'"$i"'}\""'
done
# In contrast to the previous variables, CC, AR and NM may be unset. Print
# them if they are set (even if set to the empty string).
# In contrast to the previous variables, CC, CFLAGS, AR and NM may be unset.
# Print them if they are set (even if set to the empty string).
if [ -n "${CC+x}" ]; then
echo -n "CC=\"${CC}\" "
fi
if [ -n "${CFLAGS+x}" ]; then
echo -n "CFLAGS=\"${CFLAGS}\" "
fi
if [ -n "${AR+x}" ]; then
echo -n "AR=\"${AR}\" "
fi
Expand Down

0 comments on commit 28fa827

Please sign in to comment.