Fix make warning/error colors on Mac

Apparently the default bash echo doesn't support \e even though the man
page says it does. So use \033 instead.

Test: m -j nothing on mac, get colors
Test: m -j nothing on linux, still get colors
Change-Id: I608fa87e3c28bf8f99264d39f9b250008a81235a
This commit is contained in:
Dan Willemsen
2017-05-31 19:20:09 -07:00
parent ba029141dc
commit 25f2d0ded7

View File

@@ -846,10 +846,10 @@ endef
## Use echo-(warning|error) in a build rule
## Use pretty-(warning|error) instead of $(warning)/$(error)
###########################################################
ESC_BOLD := \e[1m
ESC_WARNING := \e[35m
ESC_ERROR := \e[31m
ESC_RESET := \e[0m
ESC_BOLD := \033[1m
ESC_WARNING := \033[35m
ESC_ERROR := \033[31m
ESC_RESET := \033[0m
# $(1): path (and optionally line) information
# $(2): message to print