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
Making sure VERIFY_LOCKS stays disabled if not defined #2365
Conversation
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 patch disables the lock detection by default for every build type. Shouldn't we enable it for debug builds via CMake?
Good point. I'll change that. |
After trying to do this, I have no idea how to change that. @sithhell any input would be welcome. |
My suggestion would be to leave everything as is and keep the lock detection forced in debug mode. |
@biddisco You were the one complaining that the current behavior was unexpected. Care to comment? |
@biddisco ping? |
@sithhell wrote "This patch disables the lock detection by default for every build type. Shouldn't we enable it for debug builds via CMake?" Line 664 in 9da883c
|
What we loose here is that it is enabled by default on debug builds. One way to fix that would be to not have the define as part of the generated config defines header, but the target specific compiler flags, which is able to use generator expressions, which would allow to enable it for debug builds by default. |
What should we do with this PR now? |
I'm going to close this as there is no obvious way to achieve what you asked for. The PR here is not a correct solution in any case. |
No description provided.