Lines Matching refs:SysRoot

42                                       StringRef SysRoot) const {  in getMultiarchTriple()
100 if (D.getVFS().exists(SysRoot + "/lib/" + MT)) in getMultiarchTriple()
102 if (D.getVFS().exists(SysRoot + "/lib/mips64-linux-gnu")) in getMultiarchTriple()
111 if (D.getVFS().exists(SysRoot + "/lib/" + MT)) in getMultiarchTriple()
113 if (D.getVFS().exists(SysRoot + "/lib/mips64el-linux-gnu")) in getMultiarchTriple()
118 if (D.getVFS().exists(SysRoot + "/lib/powerpc-linux-gnuspe")) in getMultiarchTriple()
184 std::string SysRoot = computeSysRoot(); in Linux() local
226 if (IsMips && !SysRoot.empty()) in Linux()
227 ExtraOpts.push_back("--sysroot=" + SysRoot); in Linux()
263 const std::string MultiarchTriple = getMultiarchTriple(D, Triple, SysRoot); in Linux()
265 Generic_GCC::AddMultilibPaths(D, SysRoot, OSLibDir, MultiarchTriple, Paths); in Linux()
267 addPathIfExists(D, SysRoot + "/lib/" + MultiarchTriple, Paths); in Linux()
268 addPathIfExists(D, SysRoot + "/lib/../" + OSLibDir, Paths); in Linux()
279 SysRoot + "/usr/lib/" + MultiarchTriple + "/" + in Linux()
284 addPathIfExists(D, SysRoot + "/usr/lib/" + MultiarchTriple, Paths); in Linux()
290 addPathIfExists(D, SysRoot + "/usr/" + OSLibDir, Paths); in Linux()
292 addPathIfExists(D, SysRoot + "/usr/lib/../" + OSLibDir, Paths); in Linux()
295 addPathIfExists(D, SysRoot + "/" + OSLibDir + "/" + ABIName, Paths); in Linux()
296 addPathIfExists(D, SysRoot + "/usr/" + OSLibDir + "/" + ABIName, Paths); in Linux()
299 Generic_GCC::AddMultiarchPaths(D, SysRoot, OSLibDir, Paths); in Linux()
306 if (StringRef(D.Dir).startswith(SysRoot)) in Linux()
309 addPathIfExists(D, SysRoot + "/lib", Paths); in Linux()
310 addPathIfExists(D, SysRoot + "/usr/lib", Paths); in Linux()
338 if (!getDriver().SysRoot.empty()) in computeSysRoot()
339 return getDriver().SysRoot; in computeSysRoot()
535 std::string SysRoot = computeSysRoot(); in AddClangSystemIncludeArgs() local
554 addSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/local/include"); in AddClangSystemIncludeArgs()
565 llvm::sys::path::is_absolute(dir) ? "" : StringRef(SysRoot); in AddClangSystemIncludeArgs()
573 std::string MultiarchIncludeDir = getMultiarchTriple(D, getTriple(), SysRoot); in AddClangSystemIncludeArgs()
575 D.getVFS().exists(SysRoot + "/usr/include/" + MultiarchIncludeDir)) in AddClangSystemIncludeArgs()
577 SysRoot + "/usr/include/" + MultiarchIncludeDir); in AddClangSystemIncludeArgs()
585 addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/include"); in AddClangSystemIncludeArgs()
587 addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include"); in AddClangSystemIncludeArgs()