Go to the documentation of this file.
13 #include "llvm/Support/FileSystem.h"
14 #include "llvm/Support/Path.h"
19 using namespace llvm::sys;
27 if (fs::real_path(Linker, Path))
29 llvm::StringRef LinkerName =
30 path::filename(llvm::StringRef(Path.data(), Path.size()));
34 if (LinkerName.startswith(
"ld64.so"))
37 if (!LinkerName.startswith(
"ld-2."))
39 unsigned Minor = (LinkerName[5] -
'0') * 10 + (LinkerName[6] -
'0');
47 const llvm::Triple &Triple,
48 const llvm::opt::ArgList &Args)
49 :
Linux(D, Triple, Args) {
50 if (Arg *A = Args.getLastArg(options::OPT_mabi_EQ)) {
51 StringRef ABIName = A->getValue();
52 if (ABIName ==
"ieeelongdouble" && !SupportIEEEFloat128(D, Triple, Args))
53 D.
Diag(diag::warn_drv_unsupported_float_abi_by_lib) << ABIName;
58 ArgStringList &CC1Args)
const {
59 if (!DriverArgs.hasArg(clang::driver::options::OPT_nostdinc) &&
60 !DriverArgs.hasArg(options::OPT_nobuiltininc)) {
63 llvm::sys::path::append(
P,
"include",
"ppc_wrappers");
70 bool PPCLinuxToolChain::SupportIEEEFloat128(
71 const Driver &D,
const llvm::Triple &Triple,
72 const llvm::opt::ArgList &Args)
const {
73 if (!Triple.isLittleEndian() || !Triple.isPPC64())
76 if (Args.hasArg(options::OPT_nostdlib, options::OPT_nostdlibxx))
80 bool HasUnsupportedCXXLib =
86 !(D.
CCCIsCXX() && HasUnsupportedCXXLib);
DiagnosticBuilder Diag(unsigned DiagID) const
bool CCCIsCXX() const
Whether the driver should follow g++ like behavior.
std::string ResourceDir
The path to the compiler resource directory.
static bool GlibcSupportsFloat128(const std::string &Linker)
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...