[compiler-rt] r371335 - Enable leak-detection for NetBSD/amd64 in test/asan

Kamil Rytarowski via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 8 08:54:48 PDT 2019


Author: kamil
Date: Sun Sep  8 08:54:48 2019
New Revision: 371335

URL: http://llvm.org/viewvc/llvm-project?rev=371335&view=rev
Log:
Enable leak-detection for NetBSD/amd64 in test/asan

Modified:
    compiler-rt/trunk/test/asan/lit.cfg.py

Modified: compiler-rt/trunk/test/asan/lit.cfg.py
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/lit.cfg.py?rev=371335&r1=371334&r2=371335&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/lit.cfg.py (original)
+++ compiler-rt/trunk/test/asan/lit.cfg.py Sun Sep  8 08:54:48 2019
@@ -197,7 +197,8 @@ if re.search('mthumb', config.target_cfl
 # Turn on leak detection on 64-bit Linux.
 leak_detection_linux = (config.host_os == 'Linux') and (not config.android) and (config.target_arch == 'x86_64' or config.target_arch == 'i386')
 leak_detection_mac = (config.host_os == 'Darwin') and (config.target_arch == 'x86_64')
-if leak_detection_linux or leak_detection_mac:
+leak_detection_netbsd = (config.host_os == 'NetBSD') and (config.target_arch == 'x86_64')
+if leak_detection_linux or leak_detection_mac or leak_detection_netbsd:
   config.available_features.add('leak-detection')
 
 # Set LD_LIBRARY_PATH to pick dynamic runtime up properly.




More information about the llvm-commits mailing list