-
Notifications
You must be signed in to change notification settings - Fork 12
example/bzlmod: recommend extra_toolchains flag #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
e3aa432
a0256d5
5cfa262
b045a28
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,8 +47,13 @@ buildbuddy = use_extension("@toolchains_buildbuddy//:extensions.bzl", "buildbudd | |
# | ||
# (Optional) Use the repository directly instead. | ||
# use_repo(buildbuddy, "buildbuddy_toolchain") | ||
|
||
# Register the toolchains with higher priority than dependent modules (i.e. rules_cc) | ||
# | ||
# (Optional) Register the toolchains. | ||
# register_toolchains( | ||
# "@toolchains_buildbuddy//toolchains/cc:all", | ||
# ) | ||
# User may explicitly choose a specific toolchain using the `--extra_toolchains=` flag. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is still misleading: The individual toolchains we register don't compete with each other since their target constraints differ, so users never have to order them explicitly. Instead, they could just drop some of the arguments to this call. The case in which users need We could still call out the flag as an alternative to the call, but not for the purpose mentioned in the comment. |
||
# See 'examples/bzlmod/.bazelrc' file for more details. | ||
register_toolchains( | ||
"@toolchains_buildbuddy//toolchains/cc:ubuntu_gcc_x86_64", | ||
"@toolchains_buildbuddy//toolchains/cc:ubuntu_gcc_arm64", | ||
"@toolchains_buildbuddy//toolchains/cc:windows_msvc_x86_64", | ||
) |
Uh oh!
There was an error while loading. Please reload this page.