llvm.org GIT mirror llvm / 15994ef
[lit] Don't enable LSan on Darwin for Apple clang 9.0.0 The latest clang that ships with Xcode (clang 900 or 9.0.0) does not support LSan. This fixes the lit configuration to reflect that. Differential revision: https://reviews.llvm.org/D40672 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319530 91177308-0d34-0410-b5e6-96231b3b80d8 Jonas Devlieghere 1 year, 11 months ago
1 changed file(s) with 5 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
222222 return True
223223
224224 if re.match(r'^x86_64.*-apple', triple):
225 version_number = int(
226 re.search(r'version ([0-9]+)\.', version_string).group(1))
225 version_regex = re.search(r'version ([0-9]+)\.([0-9]+).([0-9]+)', version_string)
226 major_version_number = int(version_regex.group(1))
227 minor_version_number = int(version_regex.group(3))
227228 if 'Apple LLVM' in version_string:
228 return version_number >= 9
229 return major_version_number >= 9 and minor_version_number > 0
229230 else:
230 return version_number >= 5
231 return major_version_number >= 5
231232
232233 return False
233234