[clang] [clang]: baremetal `multilib.yaml` discovery (PR #227965)

Victor Campos via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 11 03:09:41 PST 2026


================
@@ -202,17 +203,26 @@ ToolChain::findMultilibsYAML(const llvm::opt::ArgList &Args, const Driver &D,
     return std::string(MultilibPath);
   }
 
-  SmallString<128> MultilibPath;
-  if (!FallbackDir.empty())
-    MultilibPath = FallbackDir;
-  else if (std::optional<std::string> StdlibDir = getStdlibPath())
-    MultilibPath = *StdlibDir;
-  else
-    return std::nullopt;
-  llvm::sys::path::append(MultilibPath, "multilib.yaml");
-  if (!D.getVFS().exists(MultilibPath))
-    return std::nullopt;
-  return std::string(MultilibPath);
+  const auto getMultilibYaml =
----------------
vhscampos wrote:

Rename this to `getMultilibYamlPath`.

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


More information about the cfe-commits mailing list