diff --git a/frameworks/native/neural_network_core/BUILD.gn b/frameworks/native/neural_network_core/BUILD.gn index 3a797f726a2b5004ddd32929488184bee3d43f88..bbfe81d39f1592f49e0ff1ff9da4bfda0616b5d3 100644 --- a/frameworks/native/neural_network_core/BUILD.gn +++ b/frameworks/native/neural_network_core/BUILD.gn @@ -16,6 +16,9 @@ import("//build/ohos.gni") config("nnrt_config") { cflags = [ "-fstack-protector-all" ] cflags_cc = [ "-fexceptions" ] +} + +config("nnrt_public_config") { include_dirs = [ "./", "../neural_network_runtime", @@ -45,9 +48,10 @@ ohos_shared_library("libneural_network_core") { include_dirs = [ "../../.." ] + configs = [ ":nnrt_config" ] public_configs = [ "../../../config:coverage_flags", - ":nnrt_config", + ":nnrt_public_config", ] external_deps = [