-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Support using external repositories for builtin_sysroot in create_cc_toolchain_config_info #20334
Comments
Yeah, I think it's that simple. Thanks for picking this up! :) |
I was talking with @comius about this and he asked me to find out if it's possible for regular labels for your use case. He is hesitant to introduce more parsing and extra syntax in more cases. If it is not possible or preferable for some reason, he approved the solution I mentioned above. |
Using a label would indeed be nicer as it would avoid the headache associated with parsing a label in Starlark (what is the current repo/package, where does the repo mapping come from, etc.) Essentially, avoid #21801. |
I think it should work if we replace this with this:
Thoughts? |
|
I'd much prefer a label pointing to a package. I only mentioned the other syntax in the bug since there was precedence and the compatibility story was obvious. Naming is always "fun," but perhaps |
Does bazelbuild/rules_cc@0069837 address this issue, or is there more to be done? |
Should be addressed in the commit just before that. For an example, take a look at https://chromium-review.googlesource.com/c/chromiumos/bazel/+/5595076 (it got reverted due to a bug in Cq-Depend, but the code is correct). |
Description of the feature request:
Pigweed doesn't have a checked in sysroot to reference in
create_cc_toolchain_config_info()
, and instead pulls down a sysroot hosted through CIPD. Right now, the only way I've found to reference the contents of this package is through"external/linux_sysroot"
. Forcxx_builtin_include_directories
, we use strings like"%package(@llvm_toolchain//)%/include/c++/v1"
to reference include directories provided by external repositories, it would be nice for this syntax to be supported forbuiltin_sysroot
as well.Which category does this issue belong to?
No response
What underlying problem are you trying to solve with this feature?
Not relying on the exec-root-relative
external/*
path to reference contents of an external repository when specifyingbuiltin_sysroot
for a cc toolchain.Which operating system are you running Bazel on?
No response
What is the output of
bazel info release
?No response
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: