From 0702f8eefa1b482e1949c4576f1b34951bbacf69 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Fri, 2 May 2014 21:46:39 +0000 Subject: [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 llvm-svn: 207873 --- clang/test/lit.cfg | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'clang') 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. -- cgit v1.2.3