From fb07e7d046700a0bf84fca0f3fe1c416152e2181 Mon Sep 17 00:00:00 2001 From: Artem Udovichenko Date: Fri, 10 Jan 2025 18:50:39 +0300 Subject: [PATCH] Add possibility to run hybrid VM tests Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/IBGV2S Change-Id: I6effed53ffcc65bccc681e9d7db26724fd013b2b Signed-off-by: Artem Udovichenko --- build/compile_script/ark.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build/compile_script/ark.py b/build/compile_script/ark.py index 77ab229f..698a3f9e 100755 --- a/build/compile_script/ark.py +++ b/build/compile_script/ark.py @@ -229,9 +229,9 @@ class ArkPy: "gn_targets_depend_on": ["default"], }, "hybrid": { - "flags": ["hybrid"], + "flags": ["hybrid", "hybrid_tests"], "description": "Compile ArkJS and STS parts in hybrid mode.", - "gn_targets_depend_on": ["hybrid"], + "gn_targets_depend_on": [], }, "gn_target": { "flags": [""], # any other flags @@ -1027,9 +1027,10 @@ class ArkPy: elif self.is_dict_flags_match_arg(self.ARG_DICT.get("target").get("regresstest"), arg_list[0]): self.build_for_regress_test(out_path, gn_args, arg_list) elif self.is_dict_flags_match_arg(self.ARG_DICT.get("target").get("hybrid"), arg_list[0]): + targets = arg_list; self.build_for_gn_target(out_path, gn_args + ["ark_ets_hybrid=true", "ark_js_hybrid=true"], - self.ARG_DICT.get("target").get("hybrid").get("gn_targets_depend_on"), + targets, self.GN_TARGET_LOG_FILE_NAME) else: self.build_for_gn_target(out_path, gn_args, arg_list, self.GN_TARGET_LOG_FILE_NAME) -- Gitee