bazel-contrib / bazel-contrib/rules_foreign_cc
bzlmod use local tools:register_built_pkgconfig_toolchain = False,register_built_tools = False,register_default_tools = True,
- Dominant language
- Starlark
- Stars
- 737
- Forks
- 270
- PR merge metrics
- No merged PRs in 30d
Description
How can I use native tools without compiling them?
when `WORKSPACE`
```
load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
# This sets up some common toolchains for building targets. For more details, please see
# https://bazelbuild.github.io/rules_foreign_cc/0.10.1/flatten.html#rules_foreign_cc_dependencies
rules_foreign_cc_dependencies(
register_built_pkgconfig_toolchain = False,
register_built_tools = False,
register_default_tools = True,
register_preinstalled_tools = True,
register_toolchains = True,
)
```
Contributor guide
Research direction
Start with the WORKSPACE example and the rules_foreign_cc_dependencies entry point, then compare its documented behavior with the bzlmod setup described in the issue. Done means users can register native or preinstalled tools without compiling the built tools, with the supported configuration documented or covered by an appropriate test.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100