From a5e8408b16afc114f6ba2c4d24cc0b6e33c9206e Mon Sep 17 00:00:00 2001 From: Scott Douglass Date: Wed, 24 Sep 2014 18:37:48 +0000 Subject: [PATCH] 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. llvm-svn: 218403 --- test/lit.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/lit.cfg b/test/lit.cfg index 294d37bc391..d3f12d51b85 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -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)