OSDN Git Service

Properly handle short file names on the command line in Windows
authorAdrian McCarthy <amccarth@google.com>
Thu, 16 Jun 2016 22:07:55 +0000 (22:07 +0000)
committerAdrian McCarthy <amccarth@google.com>
Thu, 16 Jun 2016 22:07:55 +0000 (22:07 +0000)
commit3e5651782cfc985fca9d94595cad63059e587e2f
tree8685134bb24f7ae7fd7f83c8af32449b9c99fbc2
parent8b651e60d7912f00d968c280b923e4d976ab1961
Properly handle short file names on the command line in Windows

Some build systems use the short (8.3) file names on Windows, especially if the path has spaces in it. The shortening made it impossible for clang to distinguish between clang.exe, clang++.exe, and clang-cl.exe.  So this expands short names in the first argument and does wildcard expansion for the rest.

Differential Revision: http://reviews.llvm.org/D21420

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272967 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Windows/Process.inc