llvm.org GIT mirror llvm / 3038317
[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 Francis Ricci 2 years ago
2 changed file(s) with 8 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
0 if not ('ld64_plugin' in config.available_features and 'X86' in config.root.targets):
1 config.unsupported = True
1 config.unsupported = True
2
3 # These tests invoke ld64 from the system, which is not leak-free
4 if "Address" in config.llvm_use_sanitizer:
5 config.environment['ASAN_OPTIONS'] = 'detect_leaks=0'
7474 features.add("long_tests")
7575
7676 if target_triple:
77 if re.match(r'^x86_64.*-apple', target_triple):
78 if 'address' in sanitizers:
79 self.with_environment('ASAN_OPTIONS', 'detect_leaks=1', append_path=True)
7780 if re.match(r'^x86_64.*-linux', target_triple):
7881 features.add("x86_64-linux")
7982 if re.match(r'.*-win32$', target_triple):