From: Alex Lorenz Date: Thu, 9 May 2019 02:46:20 +0000 (+0000) Subject: lit config: disable LSan for Apple clang compiler in addition to Apple LLVM X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71abe189dddb95b0d5782e0866058b9a92ff2402;p=llvm lit config: disable LSan for Apple clang compiler in addition to Apple LLVM Apple clang is the canonical way to refer to the compiler shipped with Xcode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360307 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/lit/lit/llvm/config.py b/utils/lit/lit/llvm/config.py index c335f2d04ee..8969a3d3405 100644 --- a/utils/lit/lit/llvm/config.py +++ b/utils/lit/lit/llvm/config.py @@ -233,8 +233,8 @@ class LLVMConfig(object): major_version_number = int(version_regex.group(1)) minor_version_number = int(version_regex.group(2)) patch_version_number = int(version_regex.group(3)) - if 'Apple LLVM' in version_string: - # Apple LLVM doesn't yet support LSan + if ('Apple LLVM' in version_string) or ('Apple clang' in version_string): + # Apple clang doesn't yet support LSan return False else: return major_version_number >= 5