From: Sylvestre Ledru Date: Sat, 5 Nov 2022 21:35:54 +0000 (+0100) Subject: Add support of the next Ubuntu (Ubuntu 23.04 - Lunar Lobster) X-Git-Tag: upstream/17.0.6~28424 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1829c308da9c2adc46640a960c105b573db6555;p=platform%2Fupstream%2Fllvm.git Add support of the next Ubuntu (Ubuntu 23.04 - Lunar Lobster) --- diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h index 01d66b3..1aaf93d 100644 --- a/clang/include/clang/Driver/Distro.h +++ b/clang/include/clang/Driver/Distro.h @@ -76,6 +76,7 @@ public: UbuntuImpish, UbuntuJammy, UbuntuKinetic, + UbuntuLunar, UnknownDistro }; @@ -127,7 +128,7 @@ public: } bool IsUbuntu() const { - return DistroVal >= UbuntuHardy && DistroVal <= UbuntuKinetic; + return DistroVal >= UbuntuHardy && DistroVal <= UbuntuLunar; } bool IsAlpineLinux() const { return DistroVal == AlpineLinux; } diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp index 1898667..87a0c5a 100644 --- a/clang/lib/Driver/Distro.cpp +++ b/clang/lib/Driver/Distro.cpp @@ -92,6 +92,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) { .Case("impish", Distro::UbuntuImpish) .Case("jammy", Distro::UbuntuJammy) .Case("kinetic", Distro::UbuntuKinetic) + .Case("lunar", Distro::UbuntuLunar) .Default(Distro::UnknownDistro); return Version; }