Luna/tools/test-gcc.sh
2022-09-05 16:13:51 +02:00

15 lines
273 B
Bash
Executable File

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