From 62836115d3422f72e22750fed03c0763c5e2b3e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=AD=90=E5=BB=BA?= <345981440@qq.com> Date: Tue, 5 Aug 2025 15:57:59 +0800 Subject: [PATCH] Title: disable hilog when host aot Description: disable hilog when host aot Issue: https://gitee.com/openharmony/arkui_napi/issues/ICR9MG Signed-off-by: CaoYing --- BUILD.gn | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 9872151b1..f309d7014 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -151,7 +151,7 @@ ohos_source_set("ace_napi_static") { if (target_os == "android") { libs = [ "log" ] } - } else if (!is_mingw && !is_mac && !is_linux && is_ohos_standard_system) { + } else if (!is_mingw && !is_mac && !is_linux && is_ohos_standard_system && current_toolchain != host_toolchain) { external_deps += [ "c_utils:utils", "eventhandler:libeventhandler", @@ -258,7 +258,9 @@ if (is_arkui_x) { "libuv:uv", "node:node_header_notice", ] - external_deps += [ "hilog:libhilog" ] + if (current_toolchain != host_toolchain) { + external_deps += [ "hilog:libhilog" ] + } } else { external_deps += [ "libuv:uv", -- Gitee