[clang-tools-extra] [compiler-rt] [libc] [clang] [llvm] [mlir] [flang] [lld] Make clang report garbage target versions. (PR #75373)

via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 14 18:43:15 PST 2023


================
@@ -688,6 +688,14 @@ ToolChain::getFallbackAndroidTargetPath(StringRef BaseDir) const {
   unsigned TripleVersion = getTriple().getEnvironmentVersion().getMajor();
   unsigned BestVersion = 0;
 
+  if (TripleVersion == 0) {
+    return llvm::createStringError("version " + getTriple().getVersionName() +
----------------
ZijunZhaoCCK wrote:

test in `clang/unittests/Driver/ToolChainTest.cpp` needed

https://github.com/llvm/llvm-project/pull/75373


More information about the cfe-commits mailing list