Home | History | Annotate | Download | only in Driver

Lines Matching defs:SysRoot

459   // Xcode tools to define the default sysroot, by making it the default for
595 // Check in the sysroot first.
1212 // If we have a SysRoot, try that first.
1213 if (!D.SysRoot.empty()) {
1214 Prefixes.push_back(D.SysRoot);
1215 Prefixes.push_back(D.SysRoot + "/usr");
1222 if (D.SysRoot.empty())
1568 // reflects the flags used for compilation. For example sysroot
1654 std::string SysRootInc = InstallDir.str() + "/../../../../sysroot";
1769 Dirs.push_back((InstallDir + "/../../../../sysroot/usr/include").str());
1949 // <sysroot>/usr/lib/<triple>/x.y.z so have a look there as well.
2586 getDriver().SysRoot + "/usr/include/c++/v1");
2590 getDriver().SysRoot + "/usr/include/c++/stdc++");
2592 getDriver().SysRoot + "/usr/include/c++/stdc++/backward");
2597 getDriver().SysRoot + "/usr/include/c++/stdc++/x86_64" +
2601 getDriver().SysRoot + "/usr/include/c++/stdc++/" +
2630 llvm::sys::fs::exists(getDriver().SysRoot + "/usr/lib32/crt1.o"))
2631 getFilePaths().push_back(getDriver().SysRoot + "/usr/lib32");
2633 getFilePaths().push_back(getDriver().SysRoot + "/usr/lib");
2662 getDriver().SysRoot + "/usr/include/c++/v1");
2666 getDriver().SysRoot + "/usr/include/c++/4.2");
2668 getDriver().SysRoot + "/usr/include/c++/4.2/backward");
2809 getDriver().SysRoot + "/usr/include/c++/");
2813 getDriver().SysRoot + "/usr/include/g++");
2815 getDriver().SysRoot + "/usr/include/g++/backward");
2992 StringRef SysRoot) {
3006 if (llvm::sys::fs::exists(SysRoot + "/lib/arm-linux-gnueabihf"))
3009 if (llvm::sys::fs::exists(SysRoot + "/lib/arm-linux-gnueabi"))
3016 if (llvm::sys::fs::exists(SysRoot + "/lib/armeb-linux-gnueabihf"))
3019 if (llvm::sys::fs::exists(SysRoot + "/lib/armeb-linux-gnueabi"))
3024 if (llvm::sys::fs::exists(SysRoot + "/lib/i386-linux-gnu"))
3030 llvm::sys::fs::exists(SysRoot + "/lib/x86_64-linux-gnu"))
3034 if (llvm::sys::fs::exists(SysRoot + "/lib/aarch64-linux-gnu"))
3038 if (llvm::sys::fs::exists(SysRoot + "/lib/aarch64_be-linux-gnu"))
3042 if (llvm::sys::fs::exists(SysRoot + "/lib/mips-linux-gnu"))
3046 if (llvm::sys::fs::exists(SysRoot + "/lib/mipsel-linux-gnu"))
3050 if (llvm::sys::fs::exists(SysRoot + "/lib/mips64-linux-gnu"))
3052 if (llvm::sys::fs::exists(SysRoot + "/lib/mips64-linux-gnuabi64"))
3056 if (llvm::sys::fs::exists(SysRoot + "/lib/mips64el-linux-gnu"))
3058 if (llvm::sys::fs::exists(SysRoot + "/lib/mips64el-linux-gnuabi64"))
3062 if (llvm::sys::fs::exists(SysRoot + "/lib/powerpc-linux-gnuspe"))
3064 if (llvm::sys::fs::exists(SysRoot + "/lib/powerpc-linux-gnu"))
3068 if (llvm::sys::fs::exists(SysRoot + "/lib/powerpc64-linux-gnu"))
3071 if (llvm::sys::fs::exists(SysRoot + "/lib/powerpc64le-linux-gnu"))
3116 std::string SysRoot = computeSysRoot();
3145 if (IsMips && !SysRoot.empty())
3146 ExtraOpts.push_back("--sysroot=" + SysRoot);
3182 const std::string MultiarchTriple = getMultiarchTriple(Triple, SysRoot);
3201 // when we have a sysroot somewhere else. It is the responsibility of
3202 // whomever is doing the cross build targeting a sysroot using a GCC
3218 // If the GCC installation we found is inside of the sysroot, we want to
3223 // host system, and a more minimal sysroot available that is the target of
3227 if (StringRef(LibPath).startswith(SysRoot)) {
3238 if (StringRef(D.Dir).startswith(SysRoot)) {
3243 addPathIfExists(SysRoot + "/lib/" + MultiarchTriple, Paths);
3244 addPathIfExists(SysRoot + "/lib/../" + OSLibDir, Paths);
3245 addPathIfExists(SysRoot + "/usr/lib/" + MultiarchTriple, Paths);
3246 addPathIfExists(SysRoot + "/usr/lib/../" + OSLibDir, Paths);
3251 addPathIfExists(SysRoot + "/usr/lib/" + GCCInstallation.getTriple().str() +
3262 // included even from outside the sysroot.
3270 // only included from within the sysroot.
3271 if (StringRef(LibPath).startswith(SysRoot))
3280 if (StringRef(D.Dir).startswith(SysRoot))
3283 addPathIfExists(SysRoot + "/lib", Paths);
3284 addPathIfExists(SysRoot + "/usr/lib", Paths);
3300 if (!getDriver().SysRoot.empty())
3301 return getDriver().SysRoot;
3306 // Standalone MIPS toolchains use different names for sysroot folder
3320 Path = (InstallDir + "/../../../../sysroot" + Multilib.osSuffix()).str();
3331 std::string SysRoot = computeSysRoot();
3337 addSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/local/include");
3355 llvm::sys::path::is_absolute(dir) ? StringRef(SysRoot) : "";
3455 if (llvm::sys::fs::exists(SysRoot + Dir)) {
3456 addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + Dir);
3467 addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/include");
3469 addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include");
3524 getDriver().SysRoot + "/usr/include/c++/v1"
3549 getMultiarchTriple(GCCInstallation.getTriple(), getDriver().SysRoot);
3551 getMultiarchTriple(getTriple(), getDriver().SysRoot);
3571 // Freescale SDK C++ headers are directly in <sysroot>/usr/include/c++,