diff --git a/src/BUILD.gn b/src/BUILD.gn index 9dd7741b2327c513acabb151b67fd8f8ac8eb024..c5b7dd0fdadf6765c5877c1348a8900b6e19b543 100644 --- a/src/BUILD.gn +++ b/src/BUILD.gn @@ -128,18 +128,13 @@ protobuf_lite_sources = [ ] ohos_shared_library("protobuf_standard") { - configs = [ - ":protobuf_config", - "//build/config/compiler:rtti", - ] + configs = [ ":protobuf_config" ] sources = protobuf_lite_sources - remove_configs = [ "//build/config/compiler:no_rtti" ] defines = [ "HAVE_PTHREAD" ] cflags_cc = [ "-Wall", "-Werror", "-fPIC", - "-frtti", "-U__ANDROID__", "-Wno-sign-compare", "-Wno-error=unused-parameter",