Skip to content

Commit efafdb7

Browse files
committed
Add JERRY_EXTERNAL_COMPILE_FLAGS for jerry in iotjs.
IoT.js-DCO-1.0-Signed-off-by: Yonggang Luo [email protected]
1 parent 9e7d94e commit efafdb7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cmake/jerry.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ ExternalProject_Add(libjerry
165165
-DJERRY_VM_EXEC_STOP=ON
166166
-DJERRY_ERROR_MESSAGES=ON
167167
-DENABLE_LTO=${ENABLE_LTO}
168+
"-DEXTERNAL_COMPILE_FLAGS=${JERRY_EXTERNAL_COMPILE_FLAGS}"
168169
${DEPS_LIB_JERRY_ARGS}
169170
${EXTRA_JERRY_CMAKE_PARAMS}
170171
BUILD_BYPRODUCTS ${JERRY_LIB_BUILD_BYPRODUCTS}

tools/build.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,14 @@ def build_cmake_args(options):
264264
cmake_args = []
265265
# compile flags
266266
compile_flags = options.compile_flag
267-
compile_flags += options.jerry_compile_flag
268267

269268
cmake_args.append("-DEXTERNAL_COMPILE_FLAGS='%s'" %
270269
(' '.join(compile_flags)))
271270

271+
jerry_compile_flag = options.jerry_compile_flag
272+
cmake_args.append("-DJERRY_EXTERNAL_COMPILE_FLAGS='%s'" %
273+
(' '.join(jerry_compile_flag)))
274+
272275
# link flags
273276
link_flags = options.link_flag
274277

0 commit comments

Comments
 (0)