Skip to content

Commit 66542a1

Browse files
hvadehracopybara-github
authored andcommitted
Fix usage of use_cc_toolchain in cc_toolchain_alias.bzl
The [builtins version](https://github.com/bazelbuild/bazel/blob/c7e4effeb25a46b8c9f86cac54576b9f771669ed/src/main/starlark/builtins_bzl/common/cc/cc_toolchain_alias.bzl#L51) defaults to `mandatory = False`, [see impl](https://github.com/bazelbuild/bazel/blob/c7e4effeb25a46b8c9f86cac54576b9f771669ed/src/main/starlark/builtins_bzl/common/cc/cc_helper.bzl#L80) PiperOrigin-RevId: 806242359 Change-Id: I2f8355bdf3a2cf238c3305760429e91b36a150f9
1 parent 74f29df commit 66542a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cc/private/rules_impl/cc_toolchain_alias.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ cc_toolchain_alias = rule(
4949
attrs = {
5050
"mandatory": attr.bool(default = True),
5151
},
52-
toolchains = use_cc_toolchain() + semantics.get_runtimes_toolchain(),
52+
toolchains = use_cc_toolchain(mandatory = False) + semantics.get_runtimes_toolchain(),
5353
)

0 commit comments

Comments
 (0)