From 14fade0501bde1a1d22a258ca94f9ec47bdf4a2d Mon Sep 17 00:00:00 2001 From: samoilovaleksandr Date: Fri, 26 Jul 2024 19:18:05 +0300 Subject: [PATCH] add int Qemu mode Change-Id: I8bcb14b0da4c19a352c567e328c12df0ba40d6e1 Signed-off-by: samoilovaleksandr --- build/compile_script/ark.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build/compile_script/ark.py b/build/compile_script/ark.py index f378adb4..14e4b531 100755 --- a/build/compile_script/ark.py +++ b/build/compile_script/ark.py @@ -351,6 +351,17 @@ class ArkPy: "{2}".format(args_to_test262_cmd, out_path, " --run-pgo" if run_pgo else "", timeout) if enable_litecg: test262_cmd = test262_cmd + " --enable-litecg" + elif any('target_cpu="arm64"' in arg for arg in gn_args): + print("running test262 in Int Qemu Mode\n") + test262_cmd = "cd arkcompiler/ets_frontend && python3 test262/run_test262.py {0} --timeout {3}" \ + " --libs-dir ../../prebuilts/clang/ohos/linux-x86_64/llvm/lib:../../{2}/thirdparty/icu/" \ + " --ark-arch aarch64" \ + " --ark-arch-root=../../{1}/common/common/libc/" \ + " --ark-aot-tool=../../{2}/arkcompiler/ets_runtime/ark_aot_compiler" \ + " --ark-tool=../../{1}/arkcompiler/ets_runtime/ark_js_vm" \ + " --ark-frontend-binary=../../{2}/arkcompiler/ets_frontend/es2abc" \ + " --merge-abc-binary=../../{2}/arkcompiler/ets_frontend/merge_abc" \ + " --ark-frontend=es2panda".format(args_to_test262_cmd, out_path, x64_out_path, timeout) else: print("running test262 in AsmMode\n") test262_cmd = "cd arkcompiler/ets_frontend && python3 test262/run_test262.py {0} --timeout {2}" \ -- Gitee