1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/tools/lto/lit.local.cfg
Francis Ricci 5581d140c2 [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

llvm-svn: 314535
2017-09-29 16:51:50 +00:00

7 lines
284 B
INI

if not ('ld64_plugin' in config.available_features and 'X86' in config.root.targets):
config.unsupported = True
# These tests invoke ld64 from the system, which is not leak-free
if "Address" in config.llvm_use_sanitizer:
config.environment['ASAN_OPTIONS'] = 'detect_leaks=0'