Skip to content

Commit

Permalink
Add default value for _default_copts in cc_binary.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 468658628
Change-Id: Iec00eb31767d667e1adf4283b84d3b0f3e7b7265
  • Loading branch information
buildbreaker2021 authored and Copybara-Service committed Aug 19, 2022
1 parent 3c4f7de commit 9fc90b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/starlark/builtins_bzl/common/cc/cc_binary_attrs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ load(":common/cc/semantics.bzl", "semantics")
load(":common/cc/experimental_cc_shared_library.bzl", "CcSharedLibraryInfo", "graph_structure_aspect")

CcInfo = _builtins.toplevel.CcInfo
cc_internal = _builtins.internal.cc_internal

cc_binary_attrs_with_aspects = {
"srcs": attr.label_list(
Expand Down Expand Up @@ -89,8 +90,7 @@ cc_binary_attrs_with_aspects = {
"_stl": semantics.get_stl(),
"_cc_toolchain": attr.label(default = "@" + semantics.get_repo() + "//tools/cpp:current_cc_toolchain"),
"_cc_toolchain_type": attr.label(default = "@" + semantics.get_repo() + "//tools/cpp:toolchain_type"),
# TODO(b/198254254): Add default computed value once it is available in the API.
"_default_copts": attr.string_list(),
"_default_copts": attr.string_list(default = cc_internal.default_copts_computed_default()),
"_def_parser": semantics.get_def_parser(),
}

Expand Down

0 comments on commit 9fc90b0

Please sign in to comment.