mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
make: allow for disabling colored compiler output
This commit is contained in:
parent
31207400e8
commit
09ab7cb0a8
@ -25,9 +25,13 @@ ifeq ($(shell $(CC) -fno-delete-null-pointer-checks -E - 2>/dev/null >/dev/null
|
||||
endif
|
||||
endif
|
||||
|
||||
# Use colored gcc output if the compiler supports this
|
||||
ifeq ($(shell $(CC) -fdiagnostics-color -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)
|
||||
CFLAGS += -fdiagnostics-color
|
||||
# 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)
|
||||
CFLAGS += -fdiagnostics-color
|
||||
endif
|
||||
endif
|
||||
|
||||
# Fast-out on old style function definitions.
|
||||
|
Loading…
Reference in New Issue
Block a user