[cfe-commits] r171655 - /cfe/trunk/lib/Driver/ToolChains.cpp

Sylvestre Ledru sylvestre at debian.org
Sun Jan 6 00:09:29 PST 2013


Author: sylvestre
Date: Sun Jan  6 02:09:29 2013
New Revision: 171655

URL: http://llvm.org/viewvc/llvm-project?rev=171655&view=rev
Log:
Prepare for the upcoming version of Debian (jessie)

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=171655&r1=171654&r2=171655&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Sun Jan  6 02:09:29 2013
@@ -2058,6 +2058,7 @@
   DebianLenny,
   DebianSqueeze,
   DebianWheezy,
+  DebianJessie,
   Exherbo,
   RHEL4,
   RHEL5,
@@ -2095,7 +2096,7 @@
 }
 
 static bool IsDebian(enum LinuxDistro Distro) {
-  return Distro >= DebianLenny && Distro <= DebianWheezy;
+  return Distro >= DebianLenny && Distro <= DebianJessie;
 }
 
 static bool IsUbuntu(enum LinuxDistro Distro) {
@@ -2162,6 +2163,8 @@
       return DebianSqueeze;
     else if (Data.startswith("wheezy/sid")  || Data[0] == '7')
       return DebianWheezy;
+    else if (Data.startswith("jessie/sid")  || Data[0] == '8')
+      return DebianJessie;
     return UnknownDistro;
   }
 
@@ -2326,7 +2329,7 @@
     ExtraOpts.push_back("--no-add-needed");
 
   if (Distro == DebianSqueeze || Distro == DebianWheezy ||
-      IsOpenSuse(Distro) ||
+      Distro == DebianJessie || IsOpenSuse(Distro) ||
       (IsRedhat(Distro) && Distro != RHEL4 && Distro != RHEL5) ||
       (IsUbuntu(Distro) && Distro >= UbuntuKarmic))
     ExtraOpts.push_back("--build-id");





More information about the cfe-commits mailing list