summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorDmitry Mikulin <dmitry.mikulin@sony.com>2018-03-05 19:34:33 +0000
committerDmitry Mikulin <dmitry.mikulin@sony.com>2018-03-05 19:34:33 +0000
commit430c7ff73297e8a6cb7391debe6b96a6cfa3806e (patch)
tree12bbda72bfb31d28a9fce7501f1b9b5d45a27d36 /llvm/lib/Support/CommandLine.cpp
parent6cc31ca81446b3fc61e02e2c231436978746decd (diff)
downloadbcm5719-llvm-430c7ff73297e8a6cb7391debe6b96a6cfa3806e.tar.gz
bcm5719-llvm-430c7ff73297e8a6cb7391debe6b96a6cfa3806e.zip
On Windows we need to be able to process response files with Windows-style
path names. Differential Revision: https://reviews.llvm.org/D43988 llvm-svn: 326737
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index d95b791972c..1354e3ec020 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -25,6 +25,7 @@
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringMap.h"
+#include "llvm/ADT/Triple.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Config/config.h"
#include "llvm/Support/ConvertUTF.h"
@@ -1080,7 +1081,10 @@ bool CommandLineParser::ParseCommandLineOptions(int argc,
SmallVector<const char *, 20> newArgv(argv, argv + argc);
BumpPtrAllocator A;
StringSaver Saver(A);
- ExpandResponseFiles(Saver, TokenizeGNUCommandLine, newArgv);
+ ExpandResponseFiles(Saver,
+ Triple(sys::getProcessTriple()).isOSWindows() ?
+ cl::TokenizeWindowsCommandLine : cl::TokenizeGNUCommandLine,
+ newArgv);
argv = &newArgv[0];
argc = static_cast<int>(newArgv.size());
OpenPOWER on IntegriCloud