diff options
author | Francis Ricci <francisjricci@gmail.com> | 2017-09-29 16:51:50 +0000 |
---|---|---|
committer | Francis Ricci <francisjricci@gmail.com> | 2017-09-29 16:51:50 +0000 |
commit | 3038317918b94945ce4aaaa36ef95c9b040f9e9c (patch) | |
tree | 4f9e6536a9777ebc84936d7df27943008c26a717 /utils | |
parent | e2864173a35702567e3f4aca414ebdf40a5f3b01 (diff) | |
download | llvm-3038317918b94945ce4aaaa36ef95c9b040f9e9c.tar.gz |
[test] Enable LeakSanitizer on 64-bit Darwin ASan llvm builds
Summary:
Also disables leak checking on lto tests, due to many leaks reported
in the system's ld64.
Reviewers: kcc, pcc, bogner, kubamracek
Subscribers: mehdi_amini, llvm-commits
Differential Revision: https://reviews.llvm.org/D37781
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314535 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/lit/lit/llvm/config.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/lit/lit/llvm/config.py b/utils/lit/lit/llvm/config.py index 174279c31e4..c3bdef318d6 100644 --- a/utils/lit/lit/llvm/config.py +++ b/utils/lit/lit/llvm/config.py @@ -75,6 +75,9 @@ class LLVMConfig(object): features.add("long_tests") if target_triple: + if re.match(r'^x86_64.*-apple', target_triple): + if 'address' in sanitizers: + self.with_environment('ASAN_OPTIONS', 'detect_leaks=1', append_path=True) if re.match(r'^x86_64.*-linux', target_triple): features.add("x86_64-linux") if re.match(r'.*-win32$', target_triple): |