Skip to content
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

Merged
merged 2 commits into from
Sep 1, 2021
Merged

Conversation

yiwen-wong
Copy link

Create ENABLE_CLANG_TIDY (on by default) to allow user to specify if it is run during the build.

@@ -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)
Copy link
Contributor

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...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

@simone-gaia simone-gaia left a 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.

@yiwen-wong yiwen-wong merged commit f707594 into master Sep 1, 2021
@yiwen-wong yiwen-wong deleted the yiwen_enable_clang_tidy branch September 1, 2021 16:20
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
option(ENABLE_CLANG_TIDY "Enable clang tidy" ON)
else()
option(ENABLE_CLANG_TIDY "Enable clang tidy" ON)
Copy link
Contributor

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 :)

Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants