diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-05-02 21:46:39 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-05-02 21:46:39 +0000 |
commit | 0702f8eefa1b482e1949c4576f1b34951bbacf69 (patch) | |
tree | 74c360175fe4619295afa448810d66fa724b8f4e /clang | |
parent | 4d9c3df429c2d26f30c0312cad6a2637ac5f179b (diff) | |
download | bcm5719-llvm-0702f8eefa1b482e1949c4576f1b34951bbacf69.tar.gz bcm5719-llvm-0702f8eefa1b482e1949c4576f1b34951bbacf69.zip |
[sanitizers] Propagate the sanitizer options through to the lit context.
This makes it *really* easy to debug leaks FYI:
ASAN_OPTIONS=detect_leaks=1 ./bin/llvm-lit -v <path to test>
llvm-svn: 207873
Diffstat (limited to 'clang')
-rw-r--r-- | clang/test/lit.cfg | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/lit.cfg b/clang/test/lit.cfg index 954e550d60d..7dd5f6591f9 100644 --- a/clang/test/lit.cfg +++ b/clang/test/lit.cfg @@ -115,6 +115,11 @@ for symbolizer in ['ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH']: if symbolizer in os.environ: config.environment[symbolizer] = os.environ[symbolizer] +# Propagate options for sanitizers. +for options in ['ASAN_OPTIONS']: + if options in os.environ: + config.environment[options] = os.environ[options] + ### # Check that the object root is known. |