diff --git a/es2panda/BUILD.gn b/es2panda/BUILD.gn index 56f0a55564f9829840842e4c3ca74afb81840ac9..297128cdea90a7ab902ff26b0a2741189ee636cf 100644 --- a/es2panda/BUILD.gn +++ b/es2panda/BUILD.gn @@ -465,11 +465,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") ] } @@ -507,16 +507,15 @@ ohos_executable("es2panda") { "zlib:libz", sdk_libc_secshared_dep, ] - + 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 27ebcc75c147f1eff55218b8080d9286d77afd3a..02416b07240176124730e8762ffa85f907af3a2d 100644 --- a/merge_abc/BUILD.gn +++ b/merge_abc/BUILD.gn @@ -186,16 +186,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" ] - } } if (defined(ohos_indep_compiler_enable) && ohos_indep_compiler_enable) {