Skip to content

Commit

Permalink
Fix build failes on gn bot
Browse files Browse the repository at this point in the history
  • Loading branch information
phuang committed Dec 16, 2024
1 parent db61f4b commit e1e8566
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion clang/lib/Driver/ToolChain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Env = "-ohos";
else
Env = "";
ArchAndEnv = ("-" + Arch + Env).str();
}
return (Prefix + Twine("clang_rt.") + Component + ArchAndEnv + Suffix).str();
Expand Down

0 comments on commit e1e8566

Please sign in to comment.