1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #7451 from haukepetersen/opt_make_colorondemand

make: allow for disabling colored compiler output
This commit is contained in:
Martine Lenders 2017-08-07 22:03:06 +02:00 committed by GitHub
commit 2296d630b4

View File

@ -25,10 +25,14 @@ ifeq ($(shell $(CC) -fno-delete-null-pointer-checks -E - 2>/dev/null >/dev/null
endif endif
endif endif
# Use colored gcc output if the compiler supports this # Use colored compiler output if the compiler supports this and if this is not
# disabled by the user
CC_NOCOLOR ?= 0
ifeq ($(CC_NOCOLOR),0)
ifeq ($(shell $(CC) -fdiagnostics-color -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0) ifeq ($(shell $(CC) -fdiagnostics-color -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)
CFLAGS += -fdiagnostics-color CFLAGS += -fdiagnostics-color
endif endif
endif
# Fast-out on old style function definitions. # Fast-out on old style function definitions.
# They cause unreadable error compiler errors on missing semicolons. # They cause unreadable error compiler errors on missing semicolons.