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

answer re: How to detect if building with address sanitizer when building with gcc 4.8? Jan 15 '16 31 From the GCC 4.8.0 manual: __SANITIZE_ADDRESS__ This macro is defined, with value 1, when -fsanitize=address is in use. Open Full Answer

Feb 15, 2025 - 21:39
 0
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.