~ruther/qmk_firmware

42b40e6fde2a6c3a86fb151264cf426e5ad89d46 — Jack Humbert 9 years ago d9e4dad
no more cc error on windows
1 files changed, 2 insertions(+), 2 deletions(-)

M tmk_core/rules.mk
M tmk_core/rules.mk => tmk_core/rules.mk +2 -2
@@ 161,9 161,9 @@ 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)", "")
else ifeq ("$(echo "int main(){}" | $(CC) -fcolor-diagnostics -x c - -o /dev/null 2>&1)", "")
	CFLAGS+= -fcolor-diagnostics
endif
endif