[clang] [Driver] Normalize the baremetal handling of libc++ and runtimes (PR #101259)
Daniel Thornburgh via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 30 15:52:43 PDT 2024
================
@@ -382,38 +382,6 @@ void BareMetal::AddClangCXXStdlibIncludeArgs(const ArgList &DriverArgs,
}
}
-void BareMetal::AddCXXStdlibLibArgs(const ArgList &Args,
- ArgStringList &CmdArgs) const {
- switch (GetCXXStdlibType(Args)) {
- case ToolChain::CST_Libcxx:
- CmdArgs.push_back("-lc++");
- if (Args.hasArg(options::OPT_fexperimental_library))
- CmdArgs.push_back("-lc++experimental");
- CmdArgs.push_back("-lc++abi");
----------------
mysterymath wrote:
It looks like the generic version of this doesn't include `-lc++abi`, while this one does. Is that an important difference? It seems like most of the derived toolchains include this in their overrides.
https://github.com/llvm/llvm-project/pull/101259
More information about the cfe-commits
mailing list