Skip to content

Commit

Permalink
Clean usages of grep_includes
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 545670765
  • Loading branch information
kotlaja authored and copybara-github committed Jul 5, 2023
1 parent ae583df commit f1315e3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions bazel/upb_proto_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,6 @@ def _cc_library_func(ctx, name, hdrs, srcs, copts, includes, dep_ccinfos):
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(
actions = ctx.actions,
feature_configuration = feature_configuration,
Expand All @@ -148,7 +143,6 @@ def _cc_library_func(ctx, name, hdrs, srcs, copts, includes, dep_ccinfos):
public_hdrs = hdrs,
user_compile_flags = copts,
compilation_contexts = compilation_contexts,
**blaze_only_args
)

# buildifier: disable=unused-variable
Expand All @@ -160,7 +154,6 @@ def _cc_library_func(ctx, name, hdrs, srcs, copts, includes, dep_ccinfos):
compilation_outputs = compilation_outputs,
linking_contexts = linking_contexts,
disallow_dynamic_library = cc_common.is_enabled(feature_configuration = feature_configuration, feature_name = "targets_windows"),
**blaze_only_args
)

return CcInfo(
Expand Down
7 changes: 0 additions & 7 deletions protos/bazel/upb_cc_proto_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,6 @@ def _cc_library_func(ctx, name, hdrs, srcs, copts, dep_ccinfos):
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(
actions = ctx.actions,
feature_configuration = feature_configuration,
Expand All @@ -126,7 +121,6 @@ def _cc_library_func(ctx, name, hdrs, srcs, copts, dep_ccinfos):
public_hdrs = hdrs,
user_compile_flags = copts,
compilation_contexts = compilation_contexts,
**blaze_only_args
)

# buildifier: disable=unused-variable
Expand All @@ -137,7 +131,6 @@ def _cc_library_func(ctx, name, hdrs, srcs, copts, dep_ccinfos):
cc_toolchain = toolchain,
compilation_outputs = compilation_outputs,
linking_contexts = linking_contexts,
**blaze_only_args
)

return CcInfo(
Expand Down

0 comments on commit f1315e3

Please sign in to comment.