r302143 - Add support of the next Ubuntu (Ubuntu 17.10 - Artful Aardvark)

Sylvestre Ledru via cfe-commits cfe-commits at lists.llvm.org
Thu May 4 05:46:38 PDT 2017


Author: sylvestre
Date: Thu May  4 07:46:38 2017
New Revision: 302143

URL: http://llvm.org/viewvc/llvm-project?rev=302143&view=rev
Log:
Add support of the next Ubuntu (Ubuntu 17.10 - Artful Aardvark)


Modified:
    cfe/trunk/include/clang/Driver/Distro.h
    cfe/trunk/lib/Driver/Distro.cpp

Modified: cfe/trunk/include/clang/Driver/Distro.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Distro.h?rev=302143&r1=302142&r2=302143&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Distro.h (original)
+++ cfe/trunk/include/clang/Driver/Distro.h Thu May  4 07:46:38 2017
@@ -57,6 +57,7 @@ public:
     UbuntuXenial,
     UbuntuYakkety,
     UbuntuZesty,
+    UbuntuArtful,
     UnknownDistro
   };
 
@@ -110,9 +111,9 @@ public:
   }
 
   bool IsUbuntu() const {
-    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuZesty;
+    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuArtful;
   }
- 
+
   /// @}
 };
 

Modified: cfe/trunk/lib/Driver/Distro.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Distro.cpp?rev=302143&r1=302142&r2=302143&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Distro.cpp (original)
+++ cfe/trunk/lib/Driver/Distro.cpp Thu May  4 07:46:38 2017
@@ -47,6 +47,7 @@ static Distro::DistroType DetectDistro(v
                       .Case("xenial", Distro::UbuntuXenial)
                       .Case("yakkety", Distro::UbuntuYakkety)
                       .Case("zesty", Distro::UbuntuZesty)
+                      .Case("artful", Distro::UbuntuArtful)
                       .Default(Distro::UnknownDistro);
     if (Version != Distro::UnknownDistro)
       return Version;




More information about the cfe-commits mailing list