[llvm] r319738 - Disable detect_leaks in the ASanified build of LLVM when using Apple LLVM. The released Apple LLVM versions don't support LSan.

Kuba Mracek via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 4 21:22:03 PST 2017


Author: kuba.brecka
Date: Mon Dec  4 21:22:02 2017
New Revision: 319738

URL: http://llvm.org/viewvc/llvm-project?rev=319738&view=rev
Log:
Disable detect_leaks in the ASanified build of LLVM when using Apple LLVM. The released Apple LLVM versions don't support LSan.


Modified:
    llvm/trunk/utils/lit/lit/llvm/config.py

Modified: llvm/trunk/utils/lit/lit/llvm/config.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/llvm/config.py?rev=319738&r1=319737&r2=319738&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/llvm/config.py (original)
+++ llvm/trunk/utils/lit/lit/llvm/config.py Mon Dec  4 21:22:02 2017
@@ -228,7 +228,8 @@ class LLVMConfig(object):
             minor_version_number = int(version_regex.group(2))
             patch_version_number = int(version_regex.group(3))
             if 'Apple LLVM' in version_string:
-                return major_version_number >= 9 and (minor_version_number > 0 or patch_version_number > 0)
+                # Apple LLVM doesn't yet support LSan
+                return False
             else:
                 return major_version_number >= 5
 




More information about the llvm-commits mailing list