-
Notifications
You must be signed in to change notification settings - Fork 5
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
ENABLE_CLANG_TIDY option for build #899
Conversation
production/CMakeLists.txt
Outdated
@@ -21,6 +21,8 @@ option(EXECUTE_FDW_TESTS "Execute FDW tests" OFF) | |||
|
|||
option(ENABLE_STACKTRACE "Enable stack traces" ON) | |||
|
|||
option(ENABLE_CLANG_TIDY "Enable clang tidy" ON) |
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.
You know what, I would make it the default only on debug builds (if it's not too trouble). That will definitely save time on TeamCity that is starting to be crowded...
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.
Done.
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, minor suggestion about making it enabled only on Debug builds. Not a blocker though, do as you see fit.
if(CMAKE_BUILD_TYPE STREQUAL "Debug") | ||
option(ENABLE_CLANG_TIDY "Enable clang tidy" ON) | ||
else() | ||
option(ENABLE_CLANG_TIDY "Enable clang tidy" ON) |
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.
@yiwen-wong maybe you forgot to change this :)
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 think I changed it but forgot to commit lol
Create ENABLE_CLANG_TIDY (on by default) to allow user to specify if it is run during the build.