|
|
@ -161,9 +161,9 @@ CFLAGS += -fshort-enums
|
|
|
|
CFLAGS += -fno-strict-aliasing
|
|
|
|
CFLAGS += -fno-strict-aliasing
|
|
|
|
# add color
|
|
|
|
# add color
|
|
|
|
ifeq ($(COLOR),true)
|
|
|
|
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
|
|
|
|
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
|
|
|
|
CFLAGS+= -fcolor-diagnostics
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|