r183899 - Add Ubuntu Saucy to the list of known Ubuntu releases
Sylvestre Ledru
sylvestre at debian.org
Thu Jun 13 04:52:27 PDT 2013
Author: sylvestre
Date: Thu Jun 13 06:52:27 2013
New Revision: 183899
URL: http://llvm.org/viewvc/llvm-project?rev=183899&view=rev
Log:
Add Ubuntu Saucy to the list of known Ubuntu releases
Thanks to Dmitry Shachnev for the patch
See bug #16317
Modified:
cfe/trunk/lib/Driver/ToolChains.cpp
Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=183899&r1=183898&r2=183899&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Thu Jun 13 06:52:27 2013
@@ -2009,6 +2009,7 @@ enum Distro {
UbuntuPrecise,
UbuntuQuantal,
UbuntuRaring,
+ UbuntuSaucy,
UnknownDistro
};
@@ -2026,7 +2027,7 @@ static bool IsDebian(enum Distro Distro)
}
static bool IsUbuntu(enum Distro Distro) {
- return Distro >= UbuntuHardy && Distro <= UbuntuRaring;
+ return Distro >= UbuntuHardy && Distro <= UbuntuSaucy;
}
static Distro DetectDistro(llvm::Triple::ArchType Arch) {
@@ -2050,6 +2051,7 @@ static Distro DetectDistro(llvm::Triple:
.Case("precise", UbuntuPrecise)
.Case("quantal", UbuntuQuantal)
.Case("raring", UbuntuRaring)
+ .Case("saucy", UbuntuSaucy)
.Default(UnknownDistro);
return Version;
}
More information about the cfe-commits
mailing list