-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
CcToolchainInfo
does not fill *_executable
and correctly when using action_config
#22561
Comments
Note: this affects |
Do you have a small repro? |
I don't currently have a small repro, I can see if I can come up with one next week. |
This allows it to work with new-style toolchains that use action configs (see bazelbuild/bazel#22561). It also allows you to specify a seperate C compiler and C++ compiler.
This allows it to work with new-style toolchains that use action configs (see bazelbuild/bazel#22561). It also allows you to specify a seperate C compiler and C++ compiler.
This allows it to work with new-style toolchains that use action configs (see bazelbuild/bazel#22561). It also allows you to specify a seperate C compiler and C++ compiler.
This allows it to work with new-style toolchains that use action configs (see bazelbuild/bazel#22561). It also allows you to specify a seperate C compiler and C++ compiler.
Upon digging deeper, maybe we should just be deprecating these attributes. They don't make much sense with action configs
I believe that the correct code should be:
|
This allows it to work with new-style toolchains that use action configs (see bazelbuild/bazel#22561). It also allows you to specify a seperate C compiler and C++ compiler.
This allows it to work with new-style toolchains that use action configs (see bazelbuild/bazel#22561). It also allows you to specify a seperate C compiler and C++ compiler.
This allows it to work with new-style toolchains that use action configs (see bazelbuild/bazel#22561). It also allows you to specify a seperate C compiler and C++ compiler.
I'd agree with that. actions_config seems to be superior to the *_executable attribute. |
Was going to close this since it didn't seem to be an issue, but just realized I should probably reopen it for the deprecation. |
Description of the bug:
When calling
find_cc_toolchain
, if you defined a toolchain usingaction_config
instead oftool_path
, bazel comes up with an arbitrary path for the*_executable
fields. For example, mycompiler_executable
isbazel/module_extensions/toolchains/cc/gcc
(the package that the toolchain is defined in is//bazel/module_extensions/toolchains/cc
, but we define a toolchain that uses clang in a different repo rule, and gcc doesn't even exist there, so this is definitely incorrect).Which category does this issue belong to?
C++ Rules
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
No response
Which operating system are you running Bazel on?
Linux
What is the output of
bazel info release
?7.1.1 (also repro'd on
last_green
(cc4290a1f4790ad07955202c660994f801db0f68
)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 HEAD
?No response
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
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: