Instead of creating build targets, what about adding custom arguments to the 
cmake project:

i.e. 

cmake -DCMAKE_BUILD_TYPE=release -DVPP_ENABLE_SANITIZERS=address,memory,thread

So consumer can pick which ones to use.

BTW Have you looked at others, looks like at least clang have plenty of them...



> On 19 Nov 2019, at 16:51, Benoit Ganne (bganne) via Lists.Fd.Io 
> <[email protected]> wrote:
> 
> Hi all,
> 
> During the last community call we discussed the merge of Address Sanitizer 
> support, so I updated the ASAN patch: https://gerrit.fd.io/r/c/vpp/+/21937
> Note that it works better with gcc-8 or newer at this point. The easiest way 
> to test it is to do something like:
> ~# make build-asan CC=gcc-8
> You can also run make test under asan with
> ~# make test-asan CC=gcc-8
> 
> This 1st patch introduce ASAN support and instrument the heap and as such 
> mostly catches control plane issues. I am adding buffer pools instrumentation 
> to catch data plane issues here (WIP): https://gerrit.fd.io/r/c/vpp/+/23540/
> 
> Comments & reviews are welcome.
> Thanks,
> ben
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#14625): https://lists.fd.io/g/vpp-dev/message/14625
> Mute This Topic: https://lists.fd.io/mt/60565594/675642
> Group Owner: [email protected]
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [[email protected]]
> -=-=-=-=-=-=-=-=-=-=-=-

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#14626): https://lists.fd.io/g/vpp-dev/message/14626
Mute This Topic: https://lists.fd.io/mt/60565594/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to