#!/usr/bin/env bash
#
# Look for GCC-8.3
x=$(which gcc-8.3 2>/dev/null)
if [ -n "${x}" ]; then
    gdir=$(dirname "${x}")
elif [ -f "/usr/gcc-8.3/bin/gcc" ]; then
    gdir="/usr/gcc-8.3/bin"
else
    echo "Cannot find GCC 8.3"
    exit 1
fi

echo "GCC is in ${gdir}"

CC="${gdir}/gcc"
CPP="${gdir}/cpp"
CXX="${gdir}/g++"
PATH="${gdir}:${PATH}"
export CC CPP CXX PATH

echo "Starting subshell. Type exit to exit."

${SHELL}
