From: Martin Storsjö Date: Sun, 2 Feb 2020 21:22:49 +0000 (+0200) Subject: [libcxx] [test] Fix detection of clang-cl when cross compiling X-Git-Tag: llvmorg-14-init~13184 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e29852f5c0f61ef0d8a3773e00d5d56ebf6a83d;p=platform%2Fupstream%2Fllvm.git [libcxx] [test] Fix detection of clang-cl when cross compiling When cross compiling, the compiler tool doesn't have a .exe suffix. Differential Revision: https://reviews.llvm.org/D98026 --- diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py index 7ab7606..955ef79 100644 --- a/libcxx/utils/libcxx/test/config.py +++ b/libcxx/utils/libcxx/test/config.py @@ -175,7 +175,7 @@ class Configuration(object): # Gather various compiler parameters. cxx = self.get_lit_conf('cxx_under_test') self.cxx_is_clang_cl = cxx is not None and \ - os.path.basename(cxx) == 'clang-cl.exe' + os.path.basename(cxx).startswith('clang-cl') # If no specific cxx_under_test was given, attempt to infer it as # clang++. if cxx is None or self.cxx_is_clang_cl: