[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221183 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/TestingConfig.py

index eb890674a74d1ba5d92f6a652d778f551963aaec..1006a285962e432a29bcd3a469b2e3f8a3f35a7c 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':