-
Notifications
You must be signed in to change notification settings - Fork 316
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
Added a registry key to disable passing the extra compiler flags to Bazel when building a C/C++ target in debug mode. #4913
Conversation
clwb/src/META-INF/clwb.xml
Outdated
@@ -28,6 +28,7 @@ | |||
<moduleType id="BLAZE_CPP_MODULE" implementationClass="com.google.idea.blaze.clwb.BlazeCppModuleType"/> | |||
<postStartupActivity implementation="com.google.idea.blaze.clwb.run.producers.NonBlazeProducerSuppressor"/> | |||
<actionConfigurationCustomizer implementation="com.google.idea.blaze.plugin.ClwbHideMakeActions"/> | |||
<registryKey defaultValue="false" description="Disable the extra debug flags in debug clang builds" key="bazel.clang.debug.extraflags.disabled"/> |
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 applies not only to clang builds, extraClangFlags
variable contains only clang-specific flags, but extraDebugFlags
applies to gdb, too
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.
Good point. I shall rename the registry key.
…azel when building a C/C++ target in debug mode.
Well, indeed these flags are essential for paths lookup |
I don't want to give up debugging mode, I just don't want to have to recompile every time. |
@tpasternak hi. For example:
or .env file? |
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: #4113
Description of this change