diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-06-11 22:54:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-11 22:54:34 -0400 |
commit | 42b40e6fde2a6c3a86fb151264cf426e5ad89d46 (patch) | |
tree | c8d0a6e5dce4f7f2b6bf708bc24f64a30720ab56 | |
parent | d9e4dad0a828a8a904f44dda090a4d6d08fe2948 (diff) | |
download | qmk_firmware-42b40e6fde2a6c3a86fb151264cf426e5ad89d46.tar.gz qmk_firmware-42b40e6fde2a6c3a86fb151264cf426e5ad89d46.zip |
no more cc error on windows
-rw-r--r-- | tmk_core/rules.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk index 8cae22b38f..5fcae31d1d 100644 --- a/tmk_core/rules.mk +++ b/tmk_core/rules.mk @@ -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 |