mem: instrument allocator for ASan
[dpdk.git] / config / meson.build
index 9bf2f34..59e3d5c 100644 (file)
@@ -427,6 +427,10 @@ if get_option('b_sanitize') == 'address' or get_option('b_sanitize') == 'address
         add_project_link_arguments('-lasan', language: 'c')
         dpdk_extra_ldflags += '-lasan'
     endif
+
+    if is_linux and arch_subdir == 'x86' and dpdk_conf.get('RTE_ARCH_64')
+       dpdk_conf.set10('RTE_MALLOC_ASAN', true)
+    endif
 endif
 
 if get_option('default_library') == 'both'