llvm.org GIT mirror llvm / a83daa1
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 Kuba Mracek 1 year, 11 months ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
227227 minor_version_number = int(version_regex.group(2))
228228 patch_version_number = int(version_regex.group(3))
229229 if 'Apple LLVM' in version_string:
230 return major_version_number >= 9 and (minor_version_number > 0 or patch_version_number > 0)
230 # Apple LLVM doesn't yet support LSan
231 return False
231232 else:
232233 return major_version_number >= 5
233234