diff options
-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. |