Skip to content
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

No bzlmod example #1130

Open
louwers opened this issue Dec 13, 2023 · 2 comments
Open

No bzlmod example #1130

louwers opened this issue Dec 13, 2023 · 2 comments

Comments

@louwers
Copy link

louwers commented Dec 13, 2023

The setup guide only explains how to use rules_foreign_cc with WORKSPACE, not with bzlmod.

https://bazelbuild.github.io/rules_foreign_cc/main/index.html#setup

@louwers
Copy link
Author

louwers commented Dec 13, 2023

OK that is actually super easy. Would still be good to mention it in the Setup guide!

@attilaolah
Copy link
Contributor

It is indeed quite easy to use rules_foreign_cc from MODULE.bazel, however, it comes with some limitations, namely you don't have much control over which toolchains are registered — you get the defaults. For example, if you want to avoid using the built tools, currently your only option is to use a workspace file, as far as I'm aware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants