From: Gianfranco Costamagna Date: Thu, 19 Mar 2020 08:50:20 +0000 (+0000) Subject: Add uoan as supported architecture X-Git-Tag: archive/raspbian/1%8.0.1-9+rpi1^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c607445fe9ea100864f750a91fecbaf25a5cb619;p=llvm-toolchain-8.git Add uoan as supported architecture Last-Update: 2019-04-21 Gbp-Pq: Name ubuntu-eoan-distro.patch --- diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h index 5651ebb6d..43445fb98 100644 --- a/clang/include/clang/Driver/Distro.h +++ b/clang/include/clang/Driver/Distro.h @@ -64,6 +64,7 @@ public: UbuntuBionic, UbuntuCosmic, UbuntuDisco, + UbuntuEoan, UnknownDistro }; @@ -117,7 +118,7 @@ public: } bool IsUbuntu() const { - return DistroVal >= UbuntuHardy && DistroVal <= UbuntuDisco; + return DistroVal >= UbuntuHardy && DistroVal <= UbuntuEoan; } bool IsAlpineLinux() const { diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp index 396d0bee5..260949aac 100644 --- a/clang/lib/Driver/Distro.cpp +++ b/clang/lib/Driver/Distro.cpp @@ -52,6 +52,7 @@ static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS) { .Case("bionic", Distro::UbuntuBionic) .Case("cosmic", Distro::UbuntuCosmic) .Case("disco", Distro::UbuntuDisco) + .Case("eoan", Distro::UbuntuEoan) .Default(Distro::UnknownDistro); if (Version != Distro::UnknownDistro) return Version;