all.sh: with --no-armcc, don't call armcc from output_env.sh

When not running armcc, don't try to invoke armcc at all, not even to
report its version.
This commit is contained in:
Gilles Peskine 2018-03-21 08:35:07 +01:00
parent f3ada4adb0
commit 262329603d
2 changed files with 9 additions and 7 deletions

View File

@ -47,13 +47,15 @@ print_version()
print_version "uname" "-a" "" print_version "uname" "-a" ""
echo echo
: ${ARMC5_CC:=armcc} if [ "${RUN_ARMCC:-1}" -ne 0 ]; then
print_version "$ARMC5_CC" "--vsn" "armcc not found!" "head -n 2" : "${ARMC5_CC:=armcc}"
echo print_version "$ARMC5_CC" "--vsn" "armcc not found!" "head -n 2"
echo
: ${ARMC6_CC:=armclang} : "${ARMC6_CC:=armclang}"
print_version "$ARMC6_CC" "--vsn" "armclang not found!" "head -n 2" print_version "$ARMC6_CC" "--vsn" "armclang not found!" "head -n 2"
echo echo
fi
print_version "arm-none-eabi-gcc" "--version" "gcc-arm not found!" "head -n 1" print_version "arm-none-eabi-gcc" "--version" "gcc-arm not found!" "head -n 1"
echo echo

View File

@ -447,7 +447,7 @@ msg "info: output_env.sh"
OPENSSL="$OPENSSL" OPENSSL_LEGACY="$OPENSSL_LEGACY" GNUTLS_CLI="$GNUTLS_CLI" \ OPENSSL="$OPENSSL" OPENSSL_LEGACY="$OPENSSL_LEGACY" GNUTLS_CLI="$GNUTLS_CLI" \
GNUTLS_SERV="$GNUTLS_SERV" GNUTLS_LEGACY_CLI="$GNUTLS_LEGACY_CLI" \ GNUTLS_SERV="$GNUTLS_SERV" GNUTLS_LEGACY_CLI="$GNUTLS_LEGACY_CLI" \
GNUTLS_LEGACY_SERV="$GNUTLS_LEGACY_SERV" ARMC5_CC="$ARMC5_CC" \ GNUTLS_LEGACY_SERV="$GNUTLS_LEGACY_SERV" ARMC5_CC="$ARMC5_CC" \
ARMC6_CC="$ARMC6_CC" scripts/output_env.sh ARMC6_CC="$ARMC6_CC" RUN_ARMCC="$RUN_ARMCC" scripts/output_env.sh
msg "test: recursion.pl" # < 1s msg "test: recursion.pl" # < 1s
tests/scripts/recursion.pl library/*.c tests/scripts/recursion.pl library/*.c