[lit] Forward LD_PRELOAD to tests.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 3 Nov 2014 21:24:43 +0000 (21:24 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 3 Nov 2014 21:24:43 +0000 (21:24 +0000)
With this patch I can use asan to test the gold plugin without having
to build gold itself with asan.

llvm-svn: 221183

llvm/utils/lit/lit/TestingConfig.py

index eb89067..1006a28 100644 (file)
@@ -24,6 +24,7 @@ class TestingConfig:
             'SYSTEMROOT' : os.environ.get('SYSTEMROOT',''),
             'TERM' : os.environ.get('TERM',''),
             'LLVM_DISABLE_CRASH_REPORT' : '1',
+            'LD_PRELOAD' : os.environ.get('LD_PRELOAD',''),
             }
 
         if sys.platform == 'win32':