Fix not working ulimit while using musl=1. Add color flag, that enables -fdiagnostics-color=always if specified

This commit is contained in:
e.gavrin
2014-07-30 00:22:14 +04:00
parent 076af9e1d3
commit d8c721f57a
+10 -1
View File
@@ -104,6 +104,12 @@ else
OPTION_MUSL := disable
endif
ifeq ($(color),1)
OPTION_COLOR := enable
else
OPTION_COLOR := disable
endif
#
# Target CPU
#
@@ -221,7 +227,7 @@ endif
ifeq ($(OPTION_MCU),disable)
DEFINES_JERRY += -D__HOST -DJERRY_SOURCE_BUFFER_SIZE=$$((1024*1024))
CFLAGS_COMMON += -fno-stack-protector
CFLAGS_COMMON += -fno-stack-protector
ifeq ($(OPTION_MUSL),enable)
CC := musl-$(CC)
@@ -229,6 +235,9 @@ ifeq ($(OPTION_MCU),disable)
else
CFLAGS_COMMON += -fsanitize=address
endif
ifeq ($(OPTION_COLOR),enable)
CFLAGS_COMMON += -fdiagnostics-color=always
endif
else
CFLAGS_COMMON += -ffunction-sections -fdata-sections -nostdlib
DEFINES_JERRY += -D__TARGET_MCU