diff --git a/es2panda/BUILD.gn b/es2panda/BUILD.gn index 56f0a55564f9829840842e4c3ca74afb81840ac9..8c9339bad8327ba71779a848e44d63e7a2333a20 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",