From be98a91367fb8b1077a7f3a7913892e6442d10e3 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Tue, 11 Oct 2022 12:14:01 -0700 Subject: [PATCH] Add aspect hints for kotlin native compilation. PiperOrigin-RevId: 480421756 --- BUILD | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/BUILD b/BUILD index b510096fb7..bcda15552e 100644 --- a/BUILD +++ b/BUILD @@ -37,6 +37,13 @@ load( "upb_proto_reflection_library", ) +# begin:google_only +# load( +# "//third_party/bazel_rules/rules_kotlin/kotlin/native:native_interop_hint.bzl", +# "kt_native_interop_hint", +# ) +# end:google_only + # begin:github_only load( "//bazel:build_defs.bzl", @@ -1164,4 +1171,22 @@ filegroup( # ], # ) # +# kt_native_interop_hint( +# name = "upb_kotlin_native_hint", +# compatible_with = ["//buildenv/target:non_prod"], +# headers_to_exclude = glob([ +# "**/*.hpp", +# ]) + [ +# "upb/extension_registry.h", +# ], +# no_string_conversion = ["upb_MiniTable_Build"], +# strict_enums = ["upb_FieldType"], +# ) +# +# kt_native_interop_hint( +# name = "suppress_kotlin_interop", +# compatible_with = ["//buildenv/target:non_prod"], +# suppressed = True, +# ) +# # end:google_only