Luna/tools/test-gcc.sh
apio a6974b605e
All checks were successful
continuous-integration/drone/push Build is passing
tools+CMake: Prefix all environment variables with LUNA_
2023-01-21 22:44:16 +01:00

16 lines
294 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source $(dirname $0)/setup-env.sh
if [ -x "$(command -v $LUNA_ARCH-luna-gcc)" ]
then
if [ "$($LUNA_ARCH-luna-gcc --version | head -n 1 | awk '{ print $3 }')" == "$LUNA_GCC_VERSION_REQUIRED" ]
then
exit 0
else
exit 1
fi
else
exit 1
fi