Bazel/CMake: support new internal transition rules

This commit is contained in:
Paolo Tranquilli
2023-11-16 09:04:58 +01:00
parent 14268f3c63
commit 615a128770

View File

@@ -51,7 +51,9 @@ def _get_includes(includes):
def _cmake_aspect_impl(target, ctx):
if not ctx.rule.kind.startswith("cc_"):
return [CmakeInfo(name = None, transitive_deps = depset())]
if ctx.rule.kind == "cc_binary_add_features":
# TODO: remove cc_binary_add_features once we remove it from internal repo
if ctx.rule.kind in ("cc_binary_add_features", "_cc_add_features_binary", "_cc_add_features_test"):
dep = ctx.rule.attr.dep[0][CmakeInfo]
return [CmakeInfo(
name = None,