From 1a464047b3efbb87f5f0428a9058c83a5783e690 Mon Sep 17 00:00:00 2001 From: A_Wei Date: Fri, 8 Aug 2025 20:10:22 +0800 Subject: [PATCH] Independent compilation fixed Issue:https://gitee.com/openharmony/arkcompiler_runtime_core/issues/ICS4VP?from=project-issue Signed-off-by: A_Wei --- es2panda/BUILD.gn | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/es2panda/BUILD.gn b/es2panda/BUILD.gn index 56f0a55564..9fb4569646 100644 --- a/es2panda/BUILD.gn +++ b/es2panda/BUILD.gn @@ -13,7 +13,12 @@ import("//arkcompiler/ets_frontend/es2panda/es2abc_config.gni") import("//arkcompiler/ets_frontend/ets_frontend_config.gni") -import("//arkcompiler/runtime_core/ark_config.gni") + +if ((defined(ark_standalone_build) && ark_standalone_build) || (defined(is_arkui_x) && is_arkui_x)) { + import("//arkcompiler/runtime_core/ark_config.gni") +} else { + import("//arkcompiler/ets_frontend/ark_config.gni") +} es2panda_src = [ "es2panda.cpp", -- Gitee