diff --git a/BUILD.gn b/BUILD.gn index 203f058b83de8a1b8f2ef2f54d4323e77b202ff3..ee9c1f2ea67a353bb6c207e34d01eae1986e50b3 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -26,7 +26,7 @@ config("libsec_public_config") { if (defined(ohos_lite)) { # When the kernel is liteos_m, use //kernel/liteos_m/kal/libsec/BUILD.gn to compile. if (current_toolchain == "//build/toolchain/linux:clang_x64" || - ohos_kernel_type == "liteos_a" || ohos_kernel_type == "linux") { + ohos_kernel_type != "liteos_m") { lite_library("libsec_static") { target_type = "static_library" sources = libsec_sources