summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2017-12-05 05:22:02 +0000
committerKuba Mracek <mracek@apple.com>2017-12-05 05:22:02 +0000
commita83daa1f6a06c50b8fac398ccbb0d567e2d0c7da (patch)
treea22e7388da8545e01b8c8b6ee2c125e7d3de29c6 /utils
parent95465ed3d163d928143d21ba01c43282a9ec9ef0 (diff)
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
Diffstat (limited to 'utils')
-rw-r--r--utils/lit/lit/llvm/config.py3
1 files changed, 2 insertions, 1 deletions
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