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()
185 std::string SysRoot = computeSysRoot(); in Linux() local
227 if (IsMips && !SysRoot.empty()) in Linux()
228 ExtraOpts.push_back("--sysroot=" + SysRoot); in Linux()
264 const std::string MultiarchTriple = getMultiarchTriple(D, Triple, SysRoot); in Linux()
266 Generic_GCC::AddMultilibPaths(D, SysRoot, OSLibDir, MultiarchTriple, Paths); in Linux()
268 addPathIfExists(D, SysRoot + "/lib/" + MultiarchTriple, Paths); in Linux()
269 addPathIfExists(D, SysRoot + "/lib/../" + OSLibDir, Paths); in Linux()
280 SysRoot + "/usr/lib/" + MultiarchTriple + "/" + in Linux()
285 addPathIfExists(D, SysRoot + "/usr/lib/" + MultiarchTriple, Paths); in Linux()
291 addPathIfExists(D, SysRoot + "/usr/" + OSLibDir, Paths); in Linux()
293 addPathIfExists(D, SysRoot + "/usr/lib/../" + OSLibDir, Paths); in Linux()
296 addPathIfExists(D, SysRoot + "/" + OSLibDir + "/" + ABIName, Paths); in Linux()
297 addPathIfExists(D, SysRoot + "/usr/" + OSLibDir + "/" + ABIName, Paths); in Linux()
300 Generic_GCC::AddMultiarchPaths(D, SysRoot, OSLibDir, Paths); in Linux()
307 if (StringRef(D.Dir).startswith(SysRoot)) in Linux()
310 addPathIfExists(D, SysRoot + "/lib", Paths); in Linux()
311 addPathIfExists(D, SysRoot + "/usr/lib", Paths); in Linux()
339 if (!getDriver().SysRoot.empty()) in computeSysRoot()
340 return getDriver().SysRoot; in computeSysRoot()
538 std::string SysRoot = computeSysRoot(); in AddClangSystemIncludeArgs() local
557 addSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/local/include"); in AddClangSystemIncludeArgs()
568 llvm::sys::path::is_absolute(dir) ? "" : StringRef(SysRoot); in AddClangSystemIncludeArgs()
576 std::string MultiarchIncludeDir = getMultiarchTriple(D, getTriple(), SysRoot); in AddClangSystemIncludeArgs()
578 D.getVFS().exists(SysRoot + "/usr/include/" + MultiarchIncludeDir)) in AddClangSystemIncludeArgs()
580 SysRoot + "/usr/include/" + MultiarchIncludeDir); in AddClangSystemIncludeArgs()
588 addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/include"); in AddClangSystemIncludeArgs()
590 addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include"); in AddClangSystemIncludeArgs()