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 d3b0bc986d8..3cf70482981 100644 --- a/clang/include/clang/Driver/Distro.h +++ b/clang/include/clang/Driver/Distro.h @@ -62,6 +62,7 @@ public: UbuntuArtful, UbuntuBionic, UbuntuCosmic, + UbuntuDisco, UnknownDistro }; @@ -115,7 +116,7 @@ public: } bool IsUbuntu() const { - return DistroVal >= UbuntuHardy && DistroVal <= UbuntuCosmic; + return DistroVal >= UbuntuHardy && DistroVal <= UbuntuDisco; } bool IsAlpineLinux() const { diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp index fbfc041304a..eb537c87e75 100644 --- a/clang/lib/Driver/Distro.cpp +++ b/clang/lib/Driver/Distro.cpp @@ -51,6 +51,7 @@ static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS) { .Case("artful", Distro::UbuntuArtful) .Case("bionic", Distro::UbuntuBionic) .Case("cosmic", Distro::UbuntuCosmic) + .Case("disco", Distro::UbuntuDisco) .Default(Distro::UnknownDistro); if (Version != Distro::UnknownDistro) return Version; |

