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

Support for building with sanitizers #149

Merged
merged 4 commits into from
Mar 16, 2021
Merged

Support for building with sanitizers #149

merged 4 commits into from
Mar 16, 2021

Conversation

ekilmer
Copy link
Contributor

@ekilmer ekilmer commented Mar 15, 2021

This adds a generic CMake file that contains logic to enable common sanitizers for all targets. Since building with any specific sanitizer could require other external environmental setup (certain compiler, compiler version, instrumented standard library, etc.), use of these sanitizers is expected to work only when a compatible environment is set up by an experienced developer who knows what they are doing.

CMake options are added from within the generic CMake file.

Unfortunately, there seems to be an issue with Catch2 and Windows sanitizer support, as tracked here catchorg/Catch2#898 so we can't enable that in CI, but it does compile and run successfully for the individual targets like the library and dump-pe executable.

@ekilmer ekilmer added the cmake label Mar 15, 2021
@ekilmer ekilmer requested a review from woodruffw March 15, 2021 13:55
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@ekilmer ekilmer force-pushed the sanitizers branch 7 times, most recently from 7e00dee to 7977165 Compare March 16, 2021 00:03
@ekilmer ekilmer merged commit 4286f10 into master Mar 16, 2021
@ekilmer ekilmer deleted the sanitizers branch March 16, 2021 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants