Skip to content

Commit

Permalink
Fix license in cc_library for Bazel
Browse files Browse the repository at this point in the history
RELNOTES:none
PiperOrigin-RevId: 454555751
Change-Id: Iaa3bd5f2fb99a71bf9000ea52fd7f6fd1d3970ac
  • Loading branch information
oquenchil authored and copybara-github committed Jun 13, 2022
1 parent f0e63c4 commit 5aaa5af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/starlark/builtins_bzl/common/cc/cc_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ attrs = {
flags = ["SKIP_CONSTRAINTS_OVERRIDE"],
),
"win_def_file": attr.label(allow_single_file = [".def"]),
"licenses": attr.license() if hasattr(attr, "license") else attr.string_list(),
"_stl": semantics.get_stl(),
"_grep_includes": attr.label(
allow_files = True,
Expand All @@ -616,7 +617,6 @@ attrs = {
"_def_parser": semantics.get_def_parser(),
"_cc_toolchain": attr.label(default = "@" + semantics.get_repo() + "//tools/cpp:current_cc_toolchain"),
}
attrs.update(semantics.get_licenses_attr())
attrs.update(semantics.get_distribs_attr())
attrs.update(semantics.get_loose_mode_in_hdrs_check_allowed_attr())
attrs.update(semantics.get_interface_deps_allowed_attr())
Expand Down

0 comments on commit 5aaa5af

Please sign in to comment.