mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2026-01-01 01:41:18 +01:00
Merge pull request #7262 from haukepetersen/add_coloredgccoutput
gcc: add -fdiagnostics-color for native and arm
This commit is contained in:
commit
ab9b0fd48b
@ -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