diff --git a/kal/libc/musl/BUILD.gn b/kal/libc/musl/BUILD.gn index c0a3e06c105eae4ae3399b41f787eca07460cf01..4564d90ca9a798b57bb4b429373aa35123c75bb7 100644 --- a/kal/libc/musl/BUILD.gn +++ b/kal/libc/musl/BUILD.gn @@ -35,7 +35,9 @@ module_name = get_path_info(rebase_path("."), "name") kernel_module(module_name) { configs += [ "$LITEOSTOPDIR:warn_config" ] - deps = [ "$THIRDPARTY_MUSL_DIR/porting/liteos_m/kernel" ] + if (ohos_build_type == "debug") { + deps = [ "$THIRDPARTY_MUSL_DIR/porting/liteos_m/kernel" ] + } } config("public") {