DEV Community

Dobby33
Dobby33

Posted on • Edited on

Answer: How to detect if building with address sanitizer when building with gcc 4.8?

From the GCC 4.8.0 manual:

__SANITIZE_ADDRESS__

This macro is defined, with value 1, when -fsanitize=address is in use.

Top comments (0)