mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00: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> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207874 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
71aafce117
commit
c7b30d80a2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user