Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Driver/ToolChains/Linux.cpp
Show First 20 Lines • Show All 357 Lines • ▼ Show 20 Lines | #endif | ||||
// directory ('Dir' below) or the ResourceDir. | // directory ('Dir' below) or the ResourceDir. | ||||
if (StringRef(D.Dir).startswith(SysRoot)) | if (StringRef(D.Dir).startswith(SysRoot)) | ||||
addPathIfExists(D, D.Dir + "/../lib", Paths); | addPathIfExists(D, D.Dir + "/../lib", Paths); | ||||
addPathIfExists(D, SysRoot + "/lib", Paths); | addPathIfExists(D, SysRoot + "/lib", Paths); | ||||
addPathIfExists(D, SysRoot + "/usr/lib", Paths); | addPathIfExists(D, SysRoot + "/usr/lib", Paths); | ||||
} | } | ||||
ToolChain::RuntimeLibType Linux::GetDefaultRuntimeLibType() const { | |||||
if (getTriple().isAndroid()) | |||||
return ToolChain::RLT_CompilerRT; | |||||
return Generic_ELF::GetDefaultRuntimeLibType(); | |||||
} | |||||
ToolChain::CXXStdlibType Linux::GetDefaultCXXStdlibType() const { | ToolChain::CXXStdlibType Linux::GetDefaultCXXStdlibType() const { | ||||
if (getTriple().isAndroid()) | if (getTriple().isAndroid()) | ||||
return ToolChain::CST_Libcxx; | return ToolChain::CST_Libcxx; | ||||
return ToolChain::CST_Libstdcxx; | return ToolChain::CST_Libstdcxx; | ||||
} | } | ||||
bool Linux::HasNativeLLVMSupport() const { return true; } | bool Linux::HasNativeLLVMSupport() const { return true; } | ||||
▲ Show 20 Lines • Show All 581 Lines • Show Last 20 Lines |