diff --git a/cmake/iotjs.cmake b/cmake/iotjs.cmake index cdd3d2f918..ea6e7905ef 100644 --- a/cmake/iotjs.cmake +++ b/cmake/iotjs.cmake @@ -372,13 +372,17 @@ else() set(JS2C_PREPROCESS_ARGS -E -dD) endif() +if(NOT DEFINED PYTHON) + set(PYTHON "python") +endif() + string (REPLACE ";" "," IOTJS_JS_MODULES_STR "${IOTJS_JS_MODULES}") add_custom_command( OUTPUT ${IOTJS_SOURCE_DIR}/iotjs_js.c ${IOTJS_SOURCE_DIR}/iotjs_js.h COMMAND ${CMAKE_C_COMPILER} ${JS2C_PREPROCESS_ARGS} ${IOTJS_MODULE_DEFINES} ${IOTJS_SOURCE_DIR}/iotjs_magic_strings.h > ${IOTJS_SOURCE_DIR}/iotjs_magic_strings.in - COMMAND python ${ROOT_DIR}/tools/js2c.py + COMMAND ${PYTHON} ${ROOT_DIR}/tools/js2c.py ARGS --buildtype=${JS2C_RUN_MODE} --modules "${IOTJS_JS_MODULES_STR}" ${JS2C_SNAPSHOT_ARG} diff --git a/deps/jerry b/deps/jerry index 4bdc3a1c46..5fdeb7c1d6 160000 --- a/deps/jerry +++ b/deps/jerry @@ -1 +1 @@ -Subproject commit 4bdc3a1c4618e48a4346de0d534e9030a9b2a5ea +Subproject commit 5fdeb7c1d68e8c5209e186e1760bc703a723d588