From 835024507a8a74d74fd1128139074b6c06cf26cb Mon Sep 17 00:00:00 2001 From: lijunru Date: Fri, 8 Aug 2025 21:31:54 +0800 Subject: [PATCH] fix independent compilation warning Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICS50C Signed-off-by: lijunru Change-Id: I3e05b908e66d96245a1a23483946bdf902c34543 --- es2panda/BUILD.gn | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/es2panda/BUILD.gn b/es2panda/BUILD.gn index 56f0a55564..8c9339bad8 100644 --- a/es2panda/BUILD.gn +++ b/es2panda/BUILD.gn @@ -347,14 +347,20 @@ action_foreach("gen_keywords_headers") { # generate headers for es2panda compiler isa_gen = "${ark_root}/isa/gen.rb" -if (defined(ohos_indep_compiler_enable) && ohos_indep_compiler_enable) { - isa_gen_data = "$root_build_dir/gen/isa/isa.yaml" -} else { +if (defined(ark_standalone_build) && ark_standalone_build) { isa_gen_data = "$root_gen_dir/isa/isa.yaml" +} else { + isa_combine_etc_out_dir = + get_label_info("runtime_core:isa_combine_etc", "target_out_dir") + isa_gen_data = "$isa_combine_etc_out_dir/$root_gen_dir/isa/isa.yaml" } isa_gen_require = "${ark_root}/isa/isapi.rb" action_foreach("gen_isa_headers") { - deps = [ "//arkcompiler/runtime_core/isa:isa_combine" ] + if (defined(ark_standalone_build) && ark_standalone_build) { + deps = [ "//arkcompiler/runtime_core/isa:isa_combine" ] + } else { + external_deps = [ "runtime_core:isa_combine_etc" ] + } template_files = [ "isa.h.erb", -- Gitee