diff options
| author | Gabor Greif <ggreif@gmail.com> | 2012-04-18 10:59:08 +0000 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2012-04-18 10:59:08 +0000 |
| commit | 5d3231cecba68650095c0151021a2f8ee7a8a9b1 (patch) | |
| tree | cb6153d67230673abf6b6c5ab15c1cd658ec2187 /clang/lib/Driver/ToolChains.cpp | |
| parent | 94988cb34ce5f3a2a9e560e3eee55f410c7b9ff3 (diff) | |
| download | bcm5719-llvm-5d3231cecba68650095c0151021a2f8ee7a8a9b1.tar.gz bcm5719-llvm-5d3231cecba68650095c0151021a2f8ee7a8a9b1.zip | |
fix GCC version comparison wrt. equal patch suffices (and squash two typos)
llvm-svn: 154997
Diffstat (limited to 'clang/lib/Driver/ToolChains.cpp')
| -rw-r--r-- | clang/lib/Driver/ToolChains.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp index 27102d83185..81657d80661 100644 --- a/clang/lib/Driver/ToolChains.cpp +++ b/clang/lib/Driver/ToolChains.cpp @@ -580,7 +580,7 @@ void Darwin::AddDeploymentTarget(DerivedArgList &Args) const { // If no '-miphoneos-version-min' specified on the command line and // IPHONEOS_DEPLOYMENT_TARGET is not defined, see if we can set the default - // based on isysroot. + // based on -isysroot. if (iOSTarget.empty()) { if (const Arg *A = Args.getLastArg(options::OPT_isysroot)) { StringRef first, second; @@ -1086,6 +1086,7 @@ bool Generic_GCC::GCCVersion::operator<(const GCCVersion &RHS) const { // a patch. if (RHS.Patch == -1) return true; if (Patch == -1) return false; if (Patch < RHS.Patch) return true; if (Patch > RHS.Patch) return false; + if (PatchSuffix == RHS.PatchSuffix) return false; // Finally, between completely tied version numbers, the version with the // suffix loses as we prefer full releases. @@ -2063,7 +2064,7 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) // If the GCC installation we found is inside of the sysroot, we want to // prefer libraries installed in the parent prefix of the GCC installation. // It is important to *not* use these paths when the GCC installation is - // outside of the system root as that can pick up un-intented libraries. + // outside of the system root as that can pick up unintended libraries. // This usually happens when there is an external cross compiler on the // host system, and a more minimal sysroot available that is the target of // the cross. |

