build: make address sanitizer options configurable with cmake
[vpp.git] / src / vpp / vnet / main.c
index a95d6a7..f4cc504 100644 (file)
@@ -24,6 +24,7 @@
 #include <vnet/plugin/plugin.h>
 #include <vnet/ethernet/ethernet.h>
 #include <vpp/app/version.h>
+#include <vpp/vnet/config.h>
 #include <vpp/api/vpe_msg_enum.h>
 #include <limits.h>
 
@@ -512,8 +513,7 @@ VLIB_CLI_COMMAND (show_bihash_command, static) =
 const char *
 __asan_default_options (void)
 {
-  return
-    "unmap_shadow_on_exit=1:disable_coredump=0:abort_on_error=1:detect_leaks=0";
+  return VPP_SANITIZE_ADDR_OPTIONS;
 }
 #endif /* CLIB_SANITIZE_ADDR */