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

bzlmod use local tools:register_built_pkgconfig_toolchain = False,register_built_tools = False,register_default_tools = True, #1334

Open
kekxv opened this issue Dec 2, 2024 · 1 comment

Comments

@kekxv
Copy link

kekxv commented Dec 2, 2024

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,
)
@jsharpe
Copy link
Member

jsharpe commented Dec 6, 2024

Support is missing in bzlmod to configure the toolchains; the extension API for this needs designing.

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