Lines Matching refs:SysRoot
42 StringRef SysRoot) const { in getMultiarchTriple()
64 if (D.getVFS().exists(SysRoot + "/lib/arm-linux-gnueabihf")) in getMultiarchTriple()
67 if (D.getVFS().exists(SysRoot + "/lib/arm-linux-gnueabi")) in getMultiarchTriple()
74 if (D.getVFS().exists(SysRoot + "/lib/armeb-linux-gnueabihf")) in getMultiarchTriple()
77 if (D.getVFS().exists(SysRoot + "/lib/armeb-linux-gnueabi")) in getMultiarchTriple()
84 if (D.getVFS().exists(SysRoot + "/lib/i386-linux-gnu")) in getMultiarchTriple()
92 D.getVFS().exists(SysRoot + "/lib/x86_64-linux-gnu")) in getMultiarchTriple()
98 if (D.getVFS().exists(SysRoot + "/lib/aarch64-linux-gnu")) in getMultiarchTriple()
102 if (D.getVFS().exists(SysRoot + "/lib/aarch64_be-linux-gnu")) in getMultiarchTriple()
107 if (D.getVFS().exists(SysRoot + "/lib/" + MT)) in getMultiarchTriple()
115 if (D.getVFS().exists(SysRoot + "/lib/" + MT)) in getMultiarchTriple()
122 if (D.getVFS().exists(SysRoot + "/lib/" + MT)) in getMultiarchTriple()
124 if (D.getVFS().exists(SysRoot + "/lib/mips64-linux-gnu")) in getMultiarchTriple()
133 if (D.getVFS().exists(SysRoot + "/lib/" + MT)) in getMultiarchTriple()
135 if (D.getVFS().exists(SysRoot + "/lib/mips64el-linux-gnu")) in getMultiarchTriple()
140 if (D.getVFS().exists(SysRoot + "/lib/powerpc-linux-gnuspe")) in getMultiarchTriple()
142 if (D.getVFS().exists(SysRoot + "/lib/powerpc-linux-gnu")) in getMultiarchTriple()
146 if (D.getVFS().exists(SysRoot + "/lib/powerpc64-linux-gnu")) in getMultiarchTriple()
150 if (D.getVFS().exists(SysRoot + "/lib/powerpc64le-linux-gnu")) in getMultiarchTriple()
154 if (D.getVFS().exists(SysRoot + "/lib/sparc-linux-gnu")) in getMultiarchTriple()
158 if (D.getVFS().exists(SysRoot + "/lib/sparc64-linux-gnu")) in getMultiarchTriple()
162 if (D.getVFS().exists(SysRoot + "/lib/s390x-linux-gnu")) in getMultiarchTriple()
218 std::string SysRoot = computeSysRoot(); in Linux() local
260 if (IsMips && !SysRoot.empty()) in Linux()
261 ExtraOpts.push_back("--sysroot=" + SysRoot); in Linux()
297 const std::string MultiarchTriple = getMultiarchTriple(D, Triple, SysRoot); in Linux()
299 Generic_GCC::AddMultilibPaths(D, SysRoot, OSLibDir, MultiarchTriple, Paths); in Linux()
306 if (StringRef(D.Dir).startswith(SysRoot)) { in Linux()
311 addPathIfExists(D, SysRoot + "/lib/" + MultiarchTriple, Paths); in Linux()
312 addPathIfExists(D, SysRoot + "/lib/../" + OSLibDir, Paths); in Linux()
323 SysRoot + "/usr/lib/" + MultiarchTriple + "/" + in Linux()
328 addPathIfExists(D, SysRoot + "/usr/lib/" + MultiarchTriple, Paths); in Linux()
334 addPathIfExists(D, SysRoot + "/usr/" + OSLibDir, Paths); in Linux()
336 addPathIfExists(D, SysRoot + "/usr/lib/../" + OSLibDir, Paths); in Linux()
339 addPathIfExists(D, SysRoot + "/" + OSLibDir + "/" + ABIName, Paths); in Linux()
340 addPathIfExists(D, SysRoot + "/usr/" + OSLibDir + "/" + ABIName, Paths); in Linux()
343 Generic_GCC::AddMultiarchPaths(D, SysRoot, OSLibDir, Paths); in Linux()
350 if (StringRef(D.Dir).startswith(SysRoot)) in Linux()
353 addPathIfExists(D, SysRoot + "/lib", Paths); in Linux()
354 addPathIfExists(D, SysRoot + "/usr/lib", Paths); in Linux()
376 if (!getDriver().SysRoot.empty()) in computeSysRoot()
377 return getDriver().SysRoot; in computeSysRoot()
559 std::string SysRoot = computeSysRoot(); in AddClangSystemIncludeArgs() local
565 addSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/local/include"); in AddClangSystemIncludeArgs()
583 llvm::sys::path::is_absolute(dir) ? "" : StringRef(SysRoot); in AddClangSystemIncludeArgs()
740 getMultiarchTriple(D, getTriple(), SysRoot); in AddClangSystemIncludeArgs()
746 if (D.getVFS().exists(SysRoot + Dir)) { in AddClangSystemIncludeArgs()
747 addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + Dir); in AddClangSystemIncludeArgs()
758 addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/include"); in AddClangSystemIncludeArgs()
760 addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include"); in AddClangSystemIncludeArgs()