Resubmit "Improve Windows toolchain support for non-standard environments."
authorZachary Turner <zturner@google.com>
Wed, 22 Oct 2014 20:40:28 +0000 (20:40 +0000)
committerZachary Turner <zturner@google.com>
Wed, 22 Oct 2014 20:40:28 +0000 (20:40 +0000)
commit0eaf8fc4ac04901567175aaf86b43df953009fc7
tree29891ff38b50e8ce310a59d04e5dfa1a9f10768c
parent8da2b93d9fe57c4ca6f1560c0d9b61f61a14206b
Resubmit "Improve Windows toolchain support for non-standard environments."

This resubmits change r220226.  That change broke the chromium
build bots because chromium it ships an hermetic MSVC toolchain
that it expects clang to fallback to by finding it on the path.

This patch fixes the issue by bumping up the prioritization of PATH
when looking for MSVC binaries.

Reviewed by: Hans Wennborg, Reid Kleckner
Differential Revision: http://reviews.llvm.org/D5892

llvm-svn: 220424
clang/lib/Driver/MSVCToolChain.cpp
clang/lib/Driver/ToolChains.h
clang/lib/Driver/Tools.cpp