mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-20 16:43:22 +00:00
fixed color detection routine in makefile
This commit is contained in:
parent
50621a2e6a
commit
1c2705eea5
@ -161,10 +161,8 @@ CFLAGS += -fshort-enums
|
||||
CFLAGS += -fno-strict-aliasing
|
||||
# add color
|
||||
ifeq ($(COLOR),true)
|
||||
ifeq ("$(shell echo "int main(){}" | $(CC) -fdiagnostics-color -x c - -o /dev/null 2>&1)", "")
|
||||
ifeq ("$(echo "int main(){}" | $(CC) -fdiagnostics-color -x c - -o /dev/null 2>&1)", "")
|
||||
CFLAGS+= -fdiagnostics-color
|
||||
else ifeq ("$(shell echo "int main(){}" | $(CC) -fcolor-diagnostics -x c - -o /dev/null 2>&1)", "")
|
||||
CFLAGS+= -fcolor-diagnostics
|
||||
endif
|
||||
endif
|
||||
CFLAGS += -Wall
|
||||
|
Loading…
Reference in New Issue
Block a user