1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

[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: 207874
This commit is contained in:
Chandler Carruth 2014-05-02 21:47:35 +00:00
parent bc327c6bd3
commit adc216d983

View File

@ -95,6 +95,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]
###
import os