BlueBrain / hpc-coding-conventions

Apache License 2.0
7 stars 5 forks source link

CMake helper for configuring AddressSanitizer, LeakSanitizer and UndefinedBehaviourSanitizer #131

Closed olupton closed 2 years ago

olupton commented 2 years ago

CMake helpers that handle some tedious details of configuring AddressSanitizer, LeakSanitizer and UndefinedBehaviourSanitizer. Most of the details of how one integrates the sanitizer compiler flags and environment variables are deferred to the project using the helpers.

This includes the various variables and LD_PRELOAD settings that are needed for tests that are launched from uninstrumented binaries such as Python.

Prototyped in parallel with PRs in NEURON, CoreNEURON and NMODL: