-
Notifications
You must be signed in to change notification settings - Fork 328
Fix for wrong compiler executable when using custom toolchains #6419
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
Fix for wrong compiler executable when using custom toolchains #6419
Conversation
e -> e.getKey().getCppExecutable(), | ||
e -> e.getValue().getCompilerVersion())); | ||
e -> e.getKey().getCppCompiler(), | ||
e -> e.getValue().getCppCompilerVersion())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This not correct and I already had a simple fix for BlazeCompilerInfoMapService
. But maybe it is worth taking a closer look considering #6410. Since this would require more changes I would like to merge this first.
76adca9
to
78e49c0
Compare
base/src/com/google/idea/blaze/base/ideinfo/CToolchainIdeInfo.java
Outdated
Show resolved
Hide resolved
cpp/src/com/google/idea/blaze/cpp/BlazeConfigurationToolchainResolver.java
Outdated
Show resolved
Hide resolved
cpp/src/com/google/idea/blaze/cpp/BlazeConfigurationToolchainResolver.java
Outdated
Show resolved
Hide resolved
base/src/com/google/idea/blaze/base/ideinfo/CToolchainIdeInfo.java
Outdated
Show resolved
Hide resolved
- Use ACTION_NAMES constants - Fixed getCppCompiler returns cCompiler - Renamed setCompiler to setCCppCompiler - Fixed CToolchainIdeInfo proto order
78e49c0
to
a258a19
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Checklist
Please note that the maintainers will not be reviewing this change until all checkboxes are ticked. See
the Contributions section in the README for more
details.
Discussion thread for this change
Issue number: #6418
Description of this change
Fixes #6418 by using
cc_common.get_tool_for_action
to find the right c and cpp compiler executable.