X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FSupport%2FWindows%2FProcess.inc;h=61749a72727b97dc1c66e000b99447dbe24c62d6;hp=9eeca62d9d66b7a4c8b65137d2a49fbf86a137e4;hb=dee5e2cf7fa5cfc9c9407d66dae9169586041a51;hpb=b96e8338171ed4cb23a3b14d94db2361b0d544e8;ds=sidebyside diff --git a/lib/Support/Windows/Process.inc b/lib/Support/Windows/Process.inc index 9eeca62d9d6..61749a72727 100644 --- a/lib/Support/Windows/Process.inc +++ b/lib/Support/Windows/Process.inc @@ -213,6 +213,11 @@ WildcardExpand(const wchar_t *Arg, SmallVectorImpl &Args, return ConvertAndPushArg(Arg, Args, Allocator); } + if (wcscmp(Arg, L"/?") == 0 || wcscmp(Arg, L"-?") == 0) { + // Don't wildcard expand /?. Always treat it as an option. + return ConvertAndPushArg(Arg, Args, Allocator); + } + // Extract any directory part of the argument. SmallVector Dir; if (std::error_code ec = windows::UTF16ToUTF8(Arg, wcslen(Arg), Dir))