From a83daa1f6a06c50b8fac398ccbb0d567e2d0c7da Mon Sep 17 00:00:00 2001 From: Kuba Mracek Date: Tue, 5 Dec 2017 05:22:02 +0000 Subject: [PATCH] Disable detect_leaks in the ASanified build of LLVM when using Apple LLVM. The released Apple LLVM versions don't support LSan. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319738 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/lit/lit/llvm/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/lit/lit/llvm/config.py b/utils/lit/lit/llvm/config.py index 3c9a2cc559c..554da93f110 100644 --- a/utils/lit/lit/llvm/config.py +++ b/utils/lit/lit/llvm/config.py @@ -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 -- 2.50.1