Don't use messages for errors by default
Use empty string for message property of builtin error objects by default. Add ERROR_MESSAGES build option. JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
@@ -80,6 +80,11 @@ BUILD_NAME:=
|
||||
CMAKE_DEFINES:=$(CMAKE_DEFINES) -DENABLE_DATE_SYS_CALLS=$(DATE_SYS_CALLS)
|
||||
endif
|
||||
|
||||
# Fill error messages for builtin error objects
|
||||
ifneq ($(ERROR_MESSAGES),)
|
||||
CMAKE_DEFINES:=$(CMAKE_DEFINES) -DENABLE_ERROR_MESSAGES=$(ERROR_MESSAGES)
|
||||
endif
|
||||
|
||||
# All-in-one build
|
||||
ifneq ($(ALL_IN_ONE),)
|
||||
CMAKE_DEFINES:=$(CMAKE_DEFINES) -DENABLE_ALL_IN_ONE=$(ALL_IN_ONE)
|
||||
|
||||
Reference in New Issue
Block a user