[cfe-users] Disable Leak Sanitizer

Jeffrey Walton noloader at gmail.com
Thu Mar 5 17:03:06 PST 2015

I recently upgraded from Clang 3.4 to 3.5. Clang 3.5 added a Leak
Sanitizer, and its part of Asan.

Leak Sanitizer is aborting a test suite because the developers don't
think its important to fix a test program (sigh...). I want to disable
Leak Sanitizer, but http://clang.llvm.org/docs/AddressSanitizer.html
and https://code.google.com/p/address-sanitizer/wiki/LeakSanitizer
does not discuss it.

I don't really want to go through and write a suppression rule for
each offending function. That's because there are 6 components in this
suite, and the tests for them may change over time.

How do I disable the Leak Sanitizer?

Thanks in advance.

More information about the cfe-users mailing list