Revert r251882 as it breaks the test suite

llvm-svn: 251956
This commit is contained in:
Enrico Granata 2015-11-03 18:35:17 +00:00
parent 6623e1f10f
commit 32d68fec56
1 changed files with 1 additions and 7 deletions

View File

@ -1371,13 +1371,7 @@ Host::ShellExpandArguments (ProcessLaunchInfo &launch_info)
int status;
std::string output;
FileSpec cwd(launch_info.GetWorkingDirectory());
if (!cwd.Exists())
{
error.SetErrorStringWithFormat("cwd does not exist; cannot launch with shell argument expansion");
return error;
}
RunShellCommand(expand_command, cwd, &status, nullptr, &output, 10);
RunShellCommand(expand_command, launch_info.GetWorkingDirectory(), &status, nullptr, &output, 10);
if (status != 0)
{