File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,16 @@ if(NOT DEFINED ENABLE_LTO)
55
55
set (ENABLE_LTO OFF )
56
56
endif ()
57
57
58
+ if (NOT DEFINED JERRY_LINE_INFO )
59
+ if ("${CMAKE_BUILD_TYPE} " STREQUAL "Debug" )
60
+ message ("Line info default enabled in debug mode" )
61
+ set (JERRY_LINE_INFO ON )
62
+ else ()
63
+ message ("Line info default disabled in non debug mode" )
64
+ set (JERRY_LINE_INFO OFF )
65
+ endif ()
66
+ endif ()
67
+
58
68
macro (iotjs_add_flags VAR )
59
69
foreach (_flag ${ARGN} )
60
70
set (${VAR} "${${VAR} } ${_flag} " )
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ set_property(TARGET jerry-snapshot PROPERTY
70
70
71
71
# Utility method to add -D<KEY>=<KEY_Value>
72
72
macro (add_cmake_arg TARGET_ARG KEY )
73
- if (${KEY} )
73
+ if (DEFINED ${KEY} )
74
74
list (APPEND ${TARGET_ARG} -D${KEY}=${${KEY}} )
75
75
endif ()
76
76
endmacro (add_cmake_arg )
@@ -112,7 +112,7 @@ endif()
112
112
113
113
# Add a few cmake options based on buildtype/external cmake defines
114
114
if ("${CMAKE_BUILD_TYPE} " STREQUAL "Debug" )
115
- list ( APPEND DEPS_LIB_JERRY_ARGS -DJERRY_ERROR_MESSAGES= ON )
115
+ set ( JERRY_ERROR_MESSAGES ON )
116
116
endif ()
117
117
118
118
# NuttX is not using the default port implementation of JerryScript
@@ -174,8 +174,6 @@ ExternalProject_Add(libjerry
174
174
-DJERRY_LOGGING=ON
175
175
-DJERRY_LINE_INFO=${JERRY_LINE_INFO}
176
176
-DJERRY_VM_EXEC_STOP=ON
177
- -DJERRY_ERROR_MESSAGES=ON
178
- -DENABLE_LTO=${ENABLE_LTO}
179
177
${DEPS_LIB_JERRY_ARGS}
180
178
${EXTRA_JERRY_CMAKE_PARAMS}
181
179
BUILD_BYPRODUCTS ${JERRY_LIB_BUILD_BYPRODUCTS}
You can’t perform that action at this time.
0 commit comments