Clean usages of grep_includes

PiperOrigin-RevId: 545670765
pull/13171/head
Nevena Kotlaja 1 year ago committed by Copybara-Service
parent ae583df89a
commit f1315e3d3f
  1. 7
      bazel/upb_proto_library.bzl
  2. 7
      protos/bazel/upb_cc_proto_library.bzl

@ -133,11 +133,6 @@ def _cc_library_func(ctx, name, hdrs, srcs, copts, includes, dep_ccinfos):
unsupported_features = ctx.disabled_features, unsupported_features = ctx.disabled_features,
) )
blaze_only_args = {}
if _is_google3:
blaze_only_args["grep_includes"] = ctx.file._grep_includes
(compilation_context, compilation_outputs) = cc_common.compile( (compilation_context, compilation_outputs) = cc_common.compile(
actions = ctx.actions, actions = ctx.actions,
feature_configuration = feature_configuration, feature_configuration = feature_configuration,
@ -148,7 +143,6 @@ def _cc_library_func(ctx, name, hdrs, srcs, copts, includes, dep_ccinfos):
public_hdrs = hdrs, public_hdrs = hdrs,
user_compile_flags = copts, user_compile_flags = copts,
compilation_contexts = compilation_contexts, compilation_contexts = compilation_contexts,
**blaze_only_args
) )
# buildifier: disable=unused-variable # buildifier: disable=unused-variable
@ -160,7 +154,6 @@ def _cc_library_func(ctx, name, hdrs, srcs, copts, includes, dep_ccinfos):
compilation_outputs = compilation_outputs, compilation_outputs = compilation_outputs,
linking_contexts = linking_contexts, linking_contexts = linking_contexts,
disallow_dynamic_library = cc_common.is_enabled(feature_configuration = feature_configuration, feature_name = "targets_windows"), disallow_dynamic_library = cc_common.is_enabled(feature_configuration = feature_configuration, feature_name = "targets_windows"),
**blaze_only_args
) )
return CcInfo( return CcInfo(

@ -112,11 +112,6 @@ def _cc_library_func(ctx, name, hdrs, srcs, copts, dep_ccinfos):
unsupported_features = ctx.disabled_features, unsupported_features = ctx.disabled_features,
) )
blaze_only_args = {}
if _is_google3:
blaze_only_args["grep_includes"] = ctx.file._grep_includes
(compilation_context, compilation_outputs) = cc_common.compile( (compilation_context, compilation_outputs) = cc_common.compile(
actions = ctx.actions, actions = ctx.actions,
feature_configuration = feature_configuration, feature_configuration = feature_configuration,
@ -126,7 +121,6 @@ def _cc_library_func(ctx, name, hdrs, srcs, copts, dep_ccinfos):
public_hdrs = hdrs, public_hdrs = hdrs,
user_compile_flags = copts, user_compile_flags = copts,
compilation_contexts = compilation_contexts, compilation_contexts = compilation_contexts,
**blaze_only_args
) )
# buildifier: disable=unused-variable # buildifier: disable=unused-variable
@ -137,7 +131,6 @@ def _cc_library_func(ctx, name, hdrs, srcs, copts, dep_ccinfos):
cc_toolchain = toolchain, cc_toolchain = toolchain,
compilation_outputs = compilation_outputs, compilation_outputs = compilation_outputs,
linking_contexts = linking_contexts, linking_contexts = linking_contexts,
**blaze_only_args
) )
return CcInfo( return CcInfo(

Loading…
Cancel
Save