Skip to content

Commit f348268

Browse files
authored
Merge pull request github#14805 from github/redsun82/rename-cc_binary_add_features
Bazel/CMake: support new internal transition rules
2 parents a10f94a + 615a128 commit f348268

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

misc/bazel/cmake/cmake.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ def _get_includes(includes):
5151
def _cmake_aspect_impl(target, ctx):
5252
if not ctx.rule.kind.startswith("cc_"):
5353
return [CmakeInfo(name = None, transitive_deps = depset())]
54-
if ctx.rule.kind == "cc_binary_add_features":
54+
55+
# TODO: remove cc_binary_add_features once we remove it from internal repo
56+
if ctx.rule.kind in ("cc_binary_add_features", "_cc_add_features_binary", "_cc_add_features_test"):
5557
dep = ctx.rule.attr.dep[0][CmakeInfo]
5658
return [CmakeInfo(
5759
name = None,

0 commit comments

Comments
 (0)