[libcxx-commits] [PATCH] D100775: Support leak sanitizer in libcxx.

Sterling Augustine via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Apr 19 10:57:29 PDT 2021


saugustine created this revision.
Herald added a subscriber: arichardson.
saugustine requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Support leak sanitizer in libcxx.

Simple addition for leak checking when running the libcxx testsuite.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D100775

Files:
  libcxx/utils/libcxx/test/config.py


Index: libcxx/utils/libcxx/test/config.py
===================================================================
--- libcxx/utils/libcxx/test/config.py
+++ libcxx/utils/libcxx/test/config.py
@@ -536,6 +536,8 @@
                 self.config.available_features.add('sanitizer-new-delete')
             elif san == 'DataFlow':
                 self.cxx.flags += ['-fsanitize=dataflow']
+            elif san == 'Leaks':
+                self.cxx.link_flags += ['-fsanitize=leaks']
             else:
                 self.lit_config.fatal('unsupported value for '
                                       'use_sanitizer: {0}'.format(san))


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100775.338561.patch
Type: text/x-patch
Size: 631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210419/baf34f48/attachment.bin>


More information about the libcxx-commits mailing list