Bug 1321750 - Remove automatic color flags from HOST_CFLAGS, HOST_CXXFLAGS; r?glandium
moz.configure only sets the color flags value for the target compiler.
If the host compiler is a different version and doesn't support color
flags, we may pass unrecognized command line options.
Until we have better distinction between host and target compilers
throughout the build system, just disable automatic color flags for
host invocations. We don't have too many host binaries, so this should
have negligible impact.
MozReview-Commit-ID: KWTLkKvtwHs
--- a/config/config.mk
+++ b/config/config.mk
@@ -349,18 +349,16 @@ ifeq (,$(filter $(COLOR_CFLAGS:-f%=-fno-
endif
endef
color_flags_vars := \
COMPILE_CFLAGS \
COMPILE_CXXFLAGS \
COMPILE_CMFLAGS \
COMPILE_CMMFLAGS \
- HOST_CFLAGS \
- HOST_CXXFLAGS \
LDFLAGS \
$(NULL)
ifdef MACH_STDOUT_ISATTY
ifdef COLOR_CFLAGS
# TODO Bug 1319166 - iTerm2 interprets some bytes sequences as a
# request to show a print dialog. Don't enable color on iTerm2 until
# a workaround is in place.