Fix enviroment variables when running shell scripts

llvm-svn: 258217
This commit is contained in:
Eric Fiselier 2016-01-19 23:06:29 +00:00
parent ce10842036
commit c467208791
1 changed files with 1 additions and 1 deletions

View File

@ -615,7 +615,7 @@ class Configuration(object):
for k, v in self.env.items():
exec_env_str += ' %s=%s' % (k, v)
# Configure run env substitution.
exec_str = ''
exec_str = exec_env_str
if self.lit_config.useValgrind:
exec_str = ' '.join(self.lit_config.valgrindArgs) + exec_env_str
sub.append(('%exec', exec_str))