[llvm] r207874 - [sanitizers] Propagate the sanitizer options through to the lit context.
Chandler Carruth
chandlerc at gmail.com
Fri May 2 14:47:36 PDT 2014
Author: chandlerc
Date: Fri May 2 16:47:35 2014
New Revision: 207874
URL: http://llvm.org/viewvc/llvm-project?rev=207874&view=rev
Log:
[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>
Modified:
llvm/trunk/test/lit.cfg
Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=207874&r1=207873&r2=207874&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Fri May 2 16:47:35 2014
@@ -95,6 +95,11 @@ for symbolizer in ['ASAN_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
More information about the llvm-commits
mailing list