-
Notifications
You must be signed in to change notification settings - Fork 60
Fix DEBUG_CRC compile errors and add RTS_DEBUG_CRC cmake option #771
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
base: main
Are you sure you want to change the base?
Fix DEBUG_CRC compile errors and add RTS_DEBUG_CRC cmake option #771
Conversation
f38860a
to
8e8fd01
Compare
Fixed the Debug compile error. |
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.
I'd still prefer not to merge this, because there is no benefit to enable crc logging and disable logging. And allowing these defines to be separate will make future additional crc logs more annoying to add. But if you think this is useful go ahead.
@@ -10,34 +10,33 @@ set_property(CACHE RTS_DEBUG_STACKTRACE PROPERTY STRINGS DEFAULT ON OFF) | |||
set(RTS_DEBUG_PROFILE "DEFAULT" CACHE STRING "Enables debug profiling. When DEFAULT, this option is enabled with DEBUG or INTERNAL") | |||
set_property(CACHE RTS_DEBUG_PROFILE PROPERTY STRINGS DEFAULT ON OFF) | |||
|
|||
option(RTS_DEBUG_INCLUDE_DEBUG_LOG_IN_CRC_LOG "Include normal debug log in crc log" OFF) | |||
set(RTS_DEBUG_CRC "DEFAULT" CACHE STRING "Enables debug CRC testing. When DEFAULT, this option is enabled with DEBUG_LOGGING") |
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.
debug logging, not testing
Ok then how about we just fix the theoretical compile errors, but not add the cmake option yet? |
Sounds good! |
Merge with Rebase
This change fixes compile errors from enabling DEBUG_CRC and adds a RTS_DEBUG_CRC cmake option.