Fix color diagnostics for arm-none-eabi-gcc (#26115)

This commit is contained in:
Joel Challis
2026-03-30 14:42:29 +11:00
committed by GitHub
parent 53e1f9e0bd
commit 6f4a45e392
+3 -3
View File
@@ -66,9 +66,9 @@ CFLAGS += $(CDEFS)
CFLAGS += -O$(OPT) CFLAGS += -O$(OPT)
# add color # add color
ifeq ($(COLOR),true) ifeq ($(COLOR),true)
ifeq ("$(shell echo "int main(){}" | $(CC) -fdiagnostics-color -x c - -o /dev/null 2>&1)", "") CFLAGS+= -fdiagnostics-color=always
CFLAGS+= -fdiagnostics-color else
endif CFLAGS+= -fdiagnostics-color=never
endif endif
CFLAGS += -Wall CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes CFLAGS += -Wstrict-prototypes