[llvm] r218403 - pass environment when invoking llvm-config from lit.cfg
Scott Douglass
sdouglass at arm.com
Wed Sep 24 11:37:48 PDT 2014
Author: scott-0
Date: Wed Sep 24 13:37:48 2014
New Revision: 218403
URL: http://llvm.org/viewvc/llvm-project?rev=218403&view=rev
Log:
pass environment when invoking llvm-config from lit.cfg
Use the same environment when invoking llvm-config from lit.cfg as
will be used when running tests, so that ASAN_OPTIONS, INCLUDE, etc.
are present.
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=218403&r1=218402&r2=218403&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Wed Sep 24 13:37:48 2014
@@ -313,7 +313,8 @@ if have_ld_plugin_support():
try:
llvm_config_cmd = subprocess.Popen(
[os.path.join(llvm_tools_dir, 'llvm-config'), '--assertion-mode'],
- stdout = subprocess.PIPE)
+ stdout = subprocess.PIPE,
+ env=config.environment)
except OSError:
print("Could not find llvm-config in " + llvm_tools_dir)
exit(42)
More information about the llvm-commits
mailing list