diff options
-rw-r--r-- | clang/include/clang/Driver/Distro.h | 3 | ||||
-rw-r--r-- | clang/lib/Driver/Distro.cpp | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h index 4ab4e2ae993..7b34a092560 100644 --- a/clang/include/clang/Driver/Distro.h +++ b/clang/include/clang/Driver/Distro.h @@ -61,6 +61,7 @@ public: UbuntuZesty, UbuntuArtful, UbuntuBionic, + UbuntuCosmic, UnknownDistro }; @@ -114,7 +115,7 @@ public: } bool IsUbuntu() const { - return DistroVal >= UbuntuHardy && DistroVal <= UbuntuBionic; + return DistroVal >= UbuntuHardy && DistroVal <= UbuntuCosmic; } bool IsAlpineLinux() const { diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp index f15c919b9aa..3fbf1637dd5 100644 --- a/clang/lib/Driver/Distro.cpp +++ b/clang/lib/Driver/Distro.cpp @@ -49,6 +49,7 @@ static Distro::DistroType DetectDistro(vfs::FileSystem &VFS) { .Case("zesty", Distro::UbuntuZesty) .Case("artful", Distro::UbuntuArtful) .Case("bionic", Distro::UbuntuBionic) + .Case("cosmic", Distro::UbuntuCosmic) .Default(Distro::UnknownDistro); if (Version != Distro::UnknownDistro) return Version; |