diff --git a/es2panda/BUILD.gn b/es2panda/BUILD.gn index 5c3cc2d09cb4be8bd6d747e708fecfda54adf2ce..be827ef5e573f047c187edc6f9fd5aed2fc67786 100644 --- a/es2panda/BUILD.gn +++ b/es2panda/BUILD.gn @@ -486,11 +486,11 @@ ohos_static_library("es2panda_lib") { "-Wno-c++20-designator", "-Wno-implicit-fallthrough", ] + if (enable_hilog) { + external_deps += [ "hilog:libhilog" ] + } if (defined(ohos_indep_compiler_enable) && ohos_indep_compiler_enable) { external_deps += [ "runtime_core:libarkassembler_static" ] - if (enable_hilog) { - external_deps += [ "hilog:libhilog" ] - } cflags += [ "-I" + rebase_path( "$root_build_dir/gen/arkcompiler/runtime_core/compiler/generated") ] } @@ -542,16 +542,15 @@ ohos_executable("es2panda") { "runtime_core:arkfile_public_headers", ] } - + if (enable_hilog) { + external_deps += [ "hilog:libhilog" ] + } if (defined(ohos_indep_compiler_enable) && ohos_indep_compiler_enable) { external_deps += [ "abseil-cpp:absl_base_static", "icu:shared_icuuc", "runtime_core:libarkassembler_static", ] - if (enable_hilog) { - external_deps += [ "hilog:libhilog" ] - } cflags = [ "-Wno-constant-conversion", "-I" + rebase_path( diff --git a/merge_abc/BUILD.gn b/merge_abc/BUILD.gn index fcfdef0acf6978812e13960d8e86745cf18ff028..fef25713a9de4d182f110bec2a725c27486841c6 100644 --- a/merge_abc/BUILD.gn +++ b/merge_abc/BUILD.gn @@ -184,16 +184,15 @@ ohos_source_set("assembly_proto_static") { "$ark_third_party_root/protobuf:protobuf_static", ] } - + if (enable_hilog) { + external_deps += [ "hilog:libhilog" ] + } if (!ark_standalone_build && !is_arkui_x) { external_deps += [ "runtime_core:arkassembler_public_headers", "runtime_core:arkbase_public_headers", "runtime_core:arkfile_public_headers", ] - if (enable_hilog) { - external_deps += [ "hilog:libhilog" ] - } } else { include_dirs += [ "$ark_root/assembler",