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

Add new built type based on RelWithDebInfo plus asserts #6

Merged
merged 1 commit into from
Jun 22, 2020

Conversation

weefuzzy
Copy link
Member

This is the new build type for testing. It uses the CMake built-in RelWithDebInfo as its basis, but removes the NDEBUG flag so that we still have assertions. This means that on Mac / Linux we have something like -O2 -g, i.e. some optimization and debug info, plus assertions.

Before merging we just need to agree on the name. Currently it's called Test, and you'd select it like any other build type. E.g., if using make or ninja as your generator

cmake <stuff> -DCMAKE_BUILD_TYPE=Test

If you'd rather it were called something else, now is the time to say.

Before it can be used, I need to add a line to each of the host top level CMakeLists to include the type, but it seems to work just fine.

@weefuzzy weefuzzy requested review from g-roma and tremblap June 16, 2020 11:08
@weefuzzy weefuzzy self-assigned this Jun 16, 2020
@weefuzzy weefuzzy merged commit 12a492f into master Jun 22, 2020
@weefuzzy weefuzzy deleted the feature/assert_build_profile branch May 11, 2021 07:59
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