Makefile.inc1: Allow showconfig and test-system-* if (X)CC is GCC

This case gets hit in make universe on Linux, since we will first run
make test-system-compiler to determine whether to use the system or
universe toolchain, during which time CC is the host's, GCC, and XCC
isn't set, so defaults to the same.

Fixes:	4c0dfd5959 ("arm: fail early on gcc builds")
This commit is contained in:
Jessica Clarke 2024-06-03 00:16:58 +01:00
parent 25a33bfe9c
commit a20a903b16

View file

@ -172,6 +172,7 @@ LIBCOMPAT_INCLUDE_DIRS+= i386
LIBCOMPAT_INCLUDE_DIRS+= arm
.endif
.if !defined(_MKSHOWCONFIG)
.if ((defined(X_COMPILER_TYPE) && ${X_COMPILER_TYPE} == "gcc") || \
(!defined(X_COMPILER_TYPE) && ${COMPILER_TYPE} == "gcc"))
.if ${TARGET} == "arm"
@ -195,6 +196,7 @@ _GCC_BROKEN=boot code linker script issues.
.endif
.endif
.endif
.endif
.if ${.MAKE.OS} != "FreeBSD"
CROSSBUILD_HOST=${.MAKE.OS}