mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Bazel/CMake: support new internal transition rules
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user