Rolled back r176719 because settings with file

names were broken.

<rdar://problem/13422580>

llvm-svn: 177139
This commit is contained in:
Sean Callanan 2013-03-15 01:39:44 +00:00
parent e9c43ffb2a
commit cb7733c33c
1 changed files with 11 additions and 2 deletions

View File

@ -94,8 +94,17 @@ OptionValueFileSpec::SetValueFromCString (const char *value_cstr,
case eVarSetOperationAssign:
if (value_cstr && value_cstr[0])
{
m_value_was_set = true;
m_current_value.SetFile(value_cstr, true);
Args args(value_cstr);
if (args.GetArgumentCount() == 1)
{
const char *path = args.GetArgumentAtIndex(0);
m_value_was_set = true;
m_current_value.SetFile(path, true);
}
else
{
error.SetErrorString("please supply a single path argument for this file or quote the path if it contains spaces");
}
}
else
{