Skip to content

Commit

Permalink
Add licenses attribute to cc_binary.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 430192621
  • Loading branch information
Googler authored and Copybara-Service committed Feb 22, 2022
1 parent d184e48 commit 2655ebe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ cc_binary_attrs_with_aspects = {
),
"env": attr.string_dict(),
"distribs": attr.string_list(),
"licenses": attr.license() if hasattr(attr, "license") else attr.string_list(),
"_cc_binary": attr.bool(),
"_is_test": attr.bool(default = False),
"_grep_includes": semantics.get_grep_includes(),
Expand All @@ -92,7 +93,6 @@ cc_binary_attrs_with_aspects = {
"_def_parser": semantics.get_def_parser(),
}

cc_binary_attrs_with_aspects.update(semantics.get_licenses_attr())
cc_binary_attrs_with_aspects.update(semantics.get_distribs_attr())
cc_binary_attrs_with_aspects.update(semantics.get_loose_mode_in_hdrs_check_allowed_attr())

Expand Down

0 comments on commit 2655ebe

Please sign in to comment.