OSDN Git Service

lit config: disable LSan for Apple clang compiler in addition to Apple LLVM
authorAlex Lorenz <arphaman@gmail.com>
Thu, 9 May 2019 02:46:20 +0000 (02:46 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Thu, 9 May 2019 02:46:20 +0000 (02:46 +0000)
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

utils/lit/lit/llvm/config.py

index c335f2d..8969a3d 100644 (file)
@@ -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