Attempt to fix finding clang++ on Windows

llvm-svn: 294699
This commit is contained in:
Eric Fiselier 2017-02-10 03:20:02 +00:00
parent 9e08f9a9ad
commit 5955cbd5dd
1 changed files with 4 additions and 2 deletions

View File

@ -198,8 +198,10 @@ class Configuration(object):
# If no specific cxx_under_test was given, attempt to infer it as
# clang++.
if cxx is None or self.cxx_is_clang_cl:
clangxx = libcxx.util.which('clang++',
self.config.environment['PATH'])
search_paths = self.config.environment['PATH']
if cxx is not None and os.path.isabs(cxx):
search_paths = os.path.dirname(cxx)
clangxx = libcxx.util.which('clang++', search_paths)
if clangxx:
cxx = clangxx
self.lit_config.note(