make: allow for disabling colored compiler output
This commit is contained in:
parent
31207400e8
commit
09ab7cb0a8
@ -25,10 +25,14 @@ 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
|
||||
# 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.
|
||||
# They cause unreadable error compiler errors on missing semicolons.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user