mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-30 17:01:19 +01:00
cflags: add -fdiagnostics-color if supported
This commit is contained in:
parent
1376848029
commit
2811adc092
@ -25,6 +25,11 @@ 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
|
||||
endif
|
||||
|
||||
# Fast-out on old style function definitions.
|
||||
# They cause unreadable error compiler errors on missing semicolons.
|
||||
# Worse yet they hide errors by accepting wildcard argument types.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user