diff --git a/build/compile_script/ark.py b/build/compile_script/ark.py index f378adb458a7b7a18d85ec342469105c9ec6649a..14e4b531e5831d1616e28ee27cf9ff4835f9775d 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}" \