[clang] Reapply "[Driver][OHOS] Fix lld link issue for OHOS (#118192)" (PR #120159)

Peng Huang via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 17 10:05:07 PST 2024


================
@@ -745,7 +745,13 @@ std::string ToolChain::buildCompilerRTBasename(const llvm::opt::ArgList &Args,
   std::string ArchAndEnv;
   if (AddArch) {
     StringRef Arch = getArchNameForCompilerRTLib(*this, Args);
-    const char *Env = TT.isAndroid() ? "-android" : "";
+    const char *Env = NULL;
+    if (TT.isAndroid())
+      Env = "-android";
+    else if (TT.isOHOSFamily())
----------------
phuang wrote:

@nico has confirmed the gn bot problem which is becasue increamental build with some lagcy files in the build output folder. I will remove the unnecessary changes in ToolChian.cpp.

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


More information about the cfe-commits mailing list