未验证 提交 95a49338 编写于 作者: O openharmony_ci 提交者: Gitee

!39 解决host侧工具编译时使用安全库函数编译失败的问题

Merge pull request !39 from peitaiyi/master
...@@ -25,15 +25,16 @@ config("libsec_public_config") { ...@@ -25,15 +25,16 @@ config("libsec_public_config") {
if (defined(ohos_lite)) { if (defined(ohos_lite)) {
# When the kernel is liteos_m, use //kernel/liteos_m/kal/libsec/BUILD.gn to compile. # When the kernel is liteos_m, use //kernel/liteos_m/kal/libsec/BUILD.gn to compile.
if (ohos_kernel_type == "liteos_m") { if (current_toolchain == "//build/toolchain/linux:clang_x64" ||
group("libsec_static") { ohos_kernel_type == "liteos_a" || ohos_kernel_type == "linux") {
}
} else {
lite_library("libsec_static") { lite_library("libsec_static") {
target_type = "static_library" target_type = "static_library"
sources = libsec_sources sources = libsec_sources
public_configs = [ ":libsec_public_config" ] public_configs = [ ":libsec_public_config" ]
} }
} else if (ohos_kernel_type == "liteos_m") {
group("libsec_static") {
}
} }
lite_library("libsec_shared") { lite_library("libsec_shared") {
target_type = "shared_library" target_type = "shared_library"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册