]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
no more cc error on windows
authorJack Humbert <jack.humb@gmail.com>
Sun, 12 Jun 2016 02:54:34 +0000 (22:54 -0400)
committerGitHub <noreply@github.com>
Sun, 12 Jun 2016 02:54:34 +0000 (22:54 -0400)
tmk_core/rules.mk

index 8cae22b38fd29d1d51c925be8c171dc2cb2adb13..5fcae31d1d21ef4b2afbe857643b61bc2fa2708f 100644 (file)
@@ -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