We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c3693f2 + deb3f9c commit 8997f7eCopy full SHA for 8997f7e
lib/DependencyScan/DependencyScanningTool.cpp
@@ -42,7 +42,12 @@ llvm::ErrorOr<swiftscan_string_ref_t> getTargetInfo(ArrayRef<const char *> Comma
42
SmallVector<const char *, 4> Args;
43
llvm::BumpPtrAllocator Alloc;
44
llvm::StringSaver Saver(Alloc);
45
- llvm::cl::TokenizeGNUCommandLine(CommandString, Saver, Args);
+ // Ensure that we use the Windows command line parsing on Windows as we need
46
+ // to ensure that we properly handle paths.
47
+ if (llvm::Triple(llvm::sys::getProcessTriple()).isOSWindows())
48
+ llvm::cl::TokenizeWindowsCommandLine(CommandString, Saver, Args);
49
+ else
50
+ llvm::cl::TokenizeGNUCommandLine(CommandString, Saver, Args);
51
SourceManager dummySM;
52
DiagnosticEngine DE(dummySM);
53
CompilerInvocation Invocation;
0 commit comments