Lines Matching defs:SysRoot
371 // Xcode tools to define the default sysroot, by making it the default for
535 // Check in the sysroot first.
1020 Prefixes.push_back(D.SysRoot);
1021 Prefixes.push_back(D.SysRoot + "/usr");
1372 // <sysroot>/usr/lib/<triple>/x.y.z so have a look there as well.
1771 getDriver().SysRoot + "/usr/include/c++/");
1775 getDriver().SysRoot + "/usr/include/c++/stdc++");
1777 getDriver().SysRoot + "/usr/include/c++/stdc++/backward");
1782 SysRoot + "/usr/include/c++/stdc++/x86_64" +
1786 getDriver().SysRoot + "/usr/include/c++/stdc++/" +
1816 llvm::sys::fs::exists(getDriver().SysRoot + "/usr/lib32/crt1.o"))
1817 getFilePaths().push_back(getDriver().SysRoot + "/usr/lib32");
1819 getFilePaths().push_back(getDriver().SysRoot + "/usr/lib");
1894 getDriver().SysRoot + "/usr/include/c++/");
1898 getDriver().SysRoot + "/usr/include/g++");
1900 getDriver().SysRoot + "/usr/include/g++/backward");
2104 StringRef SysRoot) {
2118 if (llvm::sys::fs::exists(SysRoot + "/lib/arm-linux-gnueabihf"))
2121 if (llvm::sys::fs::exists(SysRoot + "/lib/arm-linux-gnueabi"))
2126 if (llvm::sys::fs::exists(SysRoot + "/lib/i386-linux-gnu"))
2130 if (llvm::sys::fs::exists(SysRoot + "/lib/x86_64-linux-gnu"))
2134 if (llvm::sys::fs::exists(SysRoot + "/lib/aarch64-linux-gnu"))
2138 if (llvm::sys::fs::exists(SysRoot + "/lib/mips-linux-gnu"))
2142 if (llvm::sys::fs::exists(SysRoot + "/lib/mipsel-linux-gnu"))
2146 if (llvm::sys::fs::exists(SysRoot + "/lib/powerpc-linux-gnuspe"))
2148 if (llvm::sys::fs::exists(SysRoot + "/lib/powerpc-linux-gnu"))
2152 if (llvm::sys::fs::exists(SysRoot + "/lib/powerpc64-linux-gnu"))
2155 if (llvm::sys::fs::exists(SysRoot + "/lib/powerpc64le-linux-gnu"))
2201 std::string SysRoot = computeSysRoot(Args);
2230 if (IsMips && !SysRoot.empty())
2231 ExtraOpts.push_back("--sysroot=" + SysRoot);
2268 SysRoot);
2296 // when we have a sysroot somewhere else. It is the responsibility of
2297 // whomever is doing the cross build targetting a sysroot using a GCC
2313 // If the GCC installation we found is inside of the sysroot, we want to
2318 // host system, and a more minimal sysroot available that is the target of
2322 if (StringRef(LibPath).startswith(SysRoot)) {
2327 addPathIfExists(SysRoot + "/lib/" + MultiarchTriple, Paths);
2328 addPathIfExists(SysRoot + "/lib/../" + Multilib, Paths);
2329 addPathIfExists(SysRoot + "/usr/lib/" + MultiarchTriple, Paths);
2330 addPathIfExists(SysRoot + "/usr/lib/../" + Multilib, Paths);
2335 addPathIfExists(SysRoot + "/usr/lib/" + GCCInstallation.getTriple().str() +
2346 // included even from outside the sysroot.
2350 // only included from within the sysroot.
2351 if (StringRef(LibPath).startswith(SysRoot))
2354 addPathIfExists(SysRoot + "/lib", Paths);
2355 addPathIfExists(SysRoot + "/usr/lib", Paths);
2386 if (!getDriver().SysRoot.empty())
2387 return getDriver().SysRoot;
2403 std::string SysRoot = computeSysRoot(DriverArgs);
2409 addSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/local/include");
2427 StringRef Prefix = llvm::sys::path::is_absolute(*I) ? SysRoot : "";
2511 if (llvm::sys::fs::exists(SysRoot + *I)) {
2512 addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + *I);
2523 addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/include");
2525 addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include");
2566 getDriver().SysRoot + "/usr/include/c++/v1");
2594 // Freescale SDK C++ headers are directly in <sysroot>/usr/include/c++,