build: Do not check for $TOOLCHAIN-cc

This commit is contained in:
mintsuki 2022-06-20 00:57:44 +02:00
parent 53a2dbefdf
commit ed89ebe16b

View File

@ -10,6 +10,7 @@ fi
AC_PROG_GREP AC_PROG_GREP
ENFORCE_TOOLCHAIN=no
if test "x$TOOLCHAIN" = "x"; then if test "x$TOOLCHAIN" = "x"; then
TOOLCHAIN=$ARCHITECTURE-elf TOOLCHAIN=$ARCHITECTURE-elf
else else
@ -38,20 +39,16 @@ else
if test "x$ENFORCE_TOOLCHAIN" = "xyes"; then if test "x$ENFORCE_TOOLCHAIN" = "xyes"; then
CC_ERROR_MSG CC_ERROR_MSG
fi fi
LIMINE_CC="$TOOLCHAIN-cc" LIMINE_CC="clang"
AC_CHECK_PROG([LIMINE_CC_2], [$LIMINE_CC], [yes]) AC_CHECK_PROG([LIMINE_CC_2], [$LIMINE_CC], [yes])
if ! test "x$LIMINE_CC_2" = "xyes"; then if ! test "x$LIMINE_CC_2" = "xyes"; then
LIMINE_CC="clang" LIMINE_CC="gcc"
AC_CHECK_PROG([LIMINE_CC_3], [$LIMINE_CC], [yes]) AC_CHECK_PROG([LIMINE_CC_3], [$LIMINE_CC], [yes])
if ! test "x$LIMINE_CC_3" = "xyes"; then if ! test "x$LIMINE_CC_3" = "xyes"; then
LIMINE_CC="gcc" LIMINE_CC="cc"
AC_CHECK_PROG([LIMINE_CC_4], [$LIMINE_CC], [yes]) AC_CHECK_PROG([LIMINE_CC_4], [$LIMINE_CC], [yes])
if ! test "x$LIMINE_CC_4" = "xyes"; then if ! test "x$LIMINE_CC_4" = "xyes"; then
LIMINE_CC="cc" CC_ERROR_MSG
AC_CHECK_PROG([LIMINE_CC_5], [$LIMINE_CC], [yes])
if ! test "x$LIMINE_CC_5" = "xyes"; then
CC_ERROR_MSG
fi
fi fi
fi fi
fi fi