Skip to content

Commit 9b840aa

Browse files
authored
Merge pull request #14820 from github/redsun82/rename-cc_binary_add_features
Bazel/CMake: small compatibility fix
2 parents 8b6a918 + 9a4b561 commit 9b840aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/bazel/cmake/cmake.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def _get_includes(includes):
4949
return [_cmake_path(i) for i in includes.to_list() if "/_virtual_includes/" not in i]
5050

5151
def _cmake_aspect_impl(target, ctx):
52-
if not ctx.rule.kind.startswith("cc_"):
52+
if not ctx.rule.kind.startswith(("cc_", "_cc_add_features")):
5353
return [CmakeInfo(name = None, transitive_deps = depset())]
5454

5555
# TODO: remove cc_binary_add_features once we remove it from internal repo

0 commit comments

Comments
 (0)