Luna/tools/test-gcc.sh

15 lines
275 B
Bash
Raw Normal View History

2022-09-05 14:13:51 +00:00
#!/bin/sh
set -e
source $(dirname $0)/setup-env.sh
if [ -x "$(command -v x86_64-luna-gcc)" ]
2022-09-05 14:13:51 +00:00
then
if [ "$(x86_64-luna-gcc --version | head -n 1 | awk '{ print $3 }')" == "$LUNA_GCC_VERSION_REQUIRED" ]
2022-09-05 14:13:51 +00:00
then
exit 0
else
exit 1
fi
else
exit 1
fi