Windows: Fixed sys::findProgramByName to work with files containing dot in their...
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 8 Oct 2015 16:03:19 +0000 (16:03 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 8 Oct 2015 16:03:19 +0000 (16:03 +0000)
commitfedf66703c32642b5d73a424c52f6598b1e7be79
treed7814630005bea8a9247e473567214b4fdb1a5c0
parent6b9f46e4e4360b2944101376193f17133ddaa5c9
Windows: Fixed sys::findProgramByName to work with files containing dot in their name.

Problem was in SearchPathW function that does not attach an extension if file already has one.
That does not work for executables like ld.lld2 for example which require to have .exe extension but SearchPath thinks that its "lld2".
Solution was to add the extension manually.

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

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