diff --git a/BUILD.gn b/BUILD.gn index 9872151b1d0981e52995402d51633bcc1c514129..f309d7014cec109b1e5d7ab1ace8aa7d28ba64ee 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",