elastic / ml-cpp

Machine learning C++ code
Other
149 stars 62 forks source link

[ML] Add CMake config for Address Sanitizer builds #2672

Closed edsavage closed 2 months ago

edsavage commented 3 months ago

Add configuration for compiling with Address Sanitizer flags set for Linux and Windows (they're already present for macOS).

To use:

Linux

In addition, certain flags may want to be set via the environment variable ASAN_OPTIONS, see https://github.com/google/sanitizers/wiki/AddressSanitizerFlags#run-time-flags for more details.