diff --git a/base/BUILD.gn b/base/BUILD.gn index fb3a04cf364753ba736e4e6a52f38333d36b7a7e..447d1dfbf0f97ba5dff55a0ab606dcd705eba32b 100644 --- a/base/BUILD.gn +++ b/base/BUILD.gn @@ -157,7 +157,7 @@ ohos_shared_library("utils") { sources = sources_utils configs = [ ":utils_coverage_config" ] - if (!build_cross_platform_version) { + if (!is_arkui_x) { if (c_utils_feature_intsan) { sanitize = { integer_overflow = true @@ -198,7 +198,7 @@ ohos_shared_library("utils") { ########## modules for `c_utils` in rust ########## # rust compiler is not supportted on mac -if (host_os == "linux" && !is_asan && !build_cross_platform_version) { +if (host_os == "linux" && !is_asan && !is_arkui_x) { import("//build/templates/rust/rust_cxx.gni") # used for templates rust_cxx() rust_cxx("cxx_rust_gen") { sources = [ @@ -259,7 +259,7 @@ if (host_os == "linux" && !is_asan && !build_cross_platform_version) { group("utils_rust") { public_deps = [] - if (host_os == "linux" && !is_asan && !build_cross_platform_version) { + if (host_os == "linux" && !is_asan && !is_arkui_x) { public_deps += [ ":utils_rs" ] } } diff --git a/base/test/BUILD.gn b/base/test/BUILD.gn index 2368aac2e1665a842280c073c50bcc29d574186b..705d895d52c48fb173504996d8ed01c315496695 100644 --- a/base/test/BUILD.gn +++ b/base/test/BUILD.gn @@ -20,7 +20,7 @@ group("unittest") { deps += [ "unittest/common:unittest" ] # rust compiler is not supportted on mac - if (host_os == "linux" && !is_asan && !build_cross_platform_version) { + if (host_os == "linux" && !is_asan && !is_arkui_x) { deps += [ "unittest/rust:unittest" ] } } diff --git a/base/test/unittest/rust/BUILD.gn b/base/test/unittest/rust/BUILD.gn index 8353fcd7dffeb093584c6d16445b93863930e51d..a2fe7719af3b080fc331b1cb8b3f27892e9a537a 100644 --- a/base/test/unittest/rust/BUILD.gn +++ b/base/test/unittest/rust/BUILD.gn @@ -13,7 +13,7 @@ import("//build/ohos.gni") import("//build/test.gni") -if (host_os == "linux" && !is_asan && !build_cross_platform_version) { +if (host_os == "linux" && !is_asan && !is_arkui_x) { config("module_private_config") { visibility = [ ":*" ]