[clang] [Driver] Normalize the baremetal handling of libc++ and runtimes (PR #101259)
Peter Smith via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 1 10:57:32 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");
----------------
smithp35 wrote:
>
> @smithp35 Would it be feasible to migrate your toolchain to use either of these solutions?
It would definitely be feasible. I'm hoping that we can make a solution drop out of the existing runtimes build perhaps with an additional CMake flag. For example if we provide an extra option to the runtimes build then it either spits out a libc++ linker script fragment (my preference) or merge libc++ and libc++abi libraries (this should work as long as libc++abi's objects are inserted after libc++).
https://github.com/llvm/llvm-project/pull/101259
More information about the cfe-commits
mailing list