On Fri, 10 Sep 2021 02:01:47 +0000
zhihongx.p...@intel.com wrote:

>  
> +if get_option('b_sanitize').startswith('address')
> +     cflags += '-DRTE_MALLOC_ASAN'
> +endif
> +

This looks great, but can we make it just do-the-right-thing
and get rid of the nerd knobs (i.e no meson configure).

The address sanitizer already has a way to detect if enabled.

GCC uses:
__SANITIZE_ADDRESS__

Clang uses:
#if defined(__has_feature)
#  if __has_feature(address_sanitizer)

Reply via email to