Confirm should accept both "Y" and "y" in case somebody confuses the "default answer" indicator for a
directive to enter a capital letter. llvm-svn: 144562
This commit is contained in:
parent
16de4d20e0
commit
c8b47586bb
|
@ -3621,7 +3621,7 @@
|
|||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
LLVM_BUILD_DIR = "$(SRCROOT)/llvm-build/$(LLVM_CONFIGURATION)";
|
||||
LLVM_BUILD_DIR_ARCH = "$(CURRENT_ARCH)/";
|
||||
LLVM_CONFIGURATION = Release;
|
||||
LLVM_CONFIGURATION = "Debug+Asserts";
|
||||
LLVM_SOURCE_DIR = "$(SRCROOT)/llvm";
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
OTHER_CFLAGS = (
|
||||
|
|
|
@ -1793,12 +1793,12 @@ CommandInterpreter::GetConfirmationInputReaderCallback
|
|||
{
|
||||
reader.SetIsDone(true);
|
||||
}
|
||||
else if (bytes[0] == 'y')
|
||||
else if (bytes[0] == 'y' || bytes[0] == 'Y')
|
||||
{
|
||||
*response_ptr = true;
|
||||
reader.SetIsDone(true);
|
||||
}
|
||||
else if (bytes[0] == 'n')
|
||||
else if (bytes[0] == 'n' || bytes[0] == 'N')
|
||||
{
|
||||
*response_ptr = false;
|
||||
reader.SetIsDone(true);
|
||||
|
@ -1807,7 +1807,7 @@ CommandInterpreter::GetConfirmationInputReaderCallback
|
|||
{
|
||||
if (out_file.IsValid() && !reader.IsDone() && reader.GetPrompt())
|
||||
{
|
||||
out_file.Printf ("Please answer \"y\" or \"n\"\n%s", reader.GetPrompt());
|
||||
out_file.Printf ("Please answer \"y\" or \"Y\" or \"n\" or \"N\"\n%s", reader.GetPrompt());
|
||||
out_file.Flush ();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue