From 55f7e0b4780496f07e6d21428d5a42c54969435b Mon Sep 17 00:00:00 2001 From: Daniel Kofanov Date: Mon, 3 Oct 2022 18:05:52 +0300 Subject: [PATCH] [Common] Fix re-link of libarkruntime Change-Id: Ifac74d81b3b162b97a822907abefcdb251b87672 Signed-off-by: Daniel Kofanov --- runtime/CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt index 5acdd45f5..f167d53f6 100644 --- a/runtime/CMakeLists.txt +++ b/runtime/CMakeLists.txt @@ -186,7 +186,9 @@ if(NOT (CMAKE_CROSSCOMPILING OR PANDA_TARGET_OHOS)) INPUT_FILES ${IRTOC_ECMASCRIPT_SCRIPTS}/object.irt TARGET_VARIABLE IRTOC_ECMASCRIPT_FASTPATH_OBJ) - execute_process(COMMAND touch ${IRTOC_ECMASCRIPT_FASTPATH_OBJ}) + if (NOT EXISTS ${IRTOC_ECMASCRIPT_FASTPATH_OBJ}) + file(TOUCH ${IRTOC_ECMASCRIPT_FASTPATH_OBJ}) + endif() set(irtoc_ecmascript_fastpath_target irtoc_ecmascript_fastpath) else() ExternalProject_Get_Property(panda_host_tools binary_dir) @@ -198,8 +200,10 @@ else() ) # Due to cmake complain about absence of the irtoc file, we just fake it until it will be generated - execute_process(COMMAND mkdir -p ${binary_dir}/irtoc/irtoc_ecmascript_fastpath) - execute_process(COMMAND touch ${IRTOC_ECMASCRIPT_FASTPATH_OBJ}) + file(MAKE_DIRECTORY ${binary_dir}/irtoc/irtoc_ecmascript_fastpath) + if (NOT EXISTS ${IRTOC_ECMASCRIPT_FASTPATH_OBJ}) + file(TOUCH ${IRTOC_ECMASCRIPT_FASTPATH_OBJ}) + endif() set(irtoc_ecmascript_fastpath_target build_host_tools) endif() -- Gitee