forked from OSchip/llvm-project
Rolled back r176719 because settings with file
names were broken. <rdar://problem/13422580> llvm-svn: 177139
This commit is contained in:
parent
e9c43ffb2a
commit
cb7733c33c
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue