~mmach/netext73/llvm-17

« back to all changes in this revision

Viewing changes to debian/patches/ubuntu-releases.patch

  • Committer: mmach
  • Date: 2023-11-16 20:38:31 UTC
  • Revision ID: netbit73@gmail.com-20231116203831-zrpziauno54eop9k
17

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Update the list of Ubuntu release names
 
2
Forwarded: no
 
3
Author: Graham Inggs <ginggs@debian.org>
 
4
Last-Update: 2023-04-29
 
5
 
 
6
Index: llvm-toolchain-17-17.0.3/clang/include/clang/Driver/Distro.h
 
7
===================================================================
 
8
--- llvm-toolchain-17-17.0.3.orig/clang/include/clang/Driver/Distro.h
 
9
+++ llvm-toolchain-17-17.0.3/clang/include/clang/Driver/Distro.h
 
10
@@ -78,6 +78,7 @@
 
11
     UbuntuKinetic,
 
12
     UbuntuLunar,
 
13
     UbuntuMantic,
 
14
+    UbuntuNoble,
 
15
     UnknownDistro
 
16
   };
 
17
 
 
18
@@ -129,7 +130,7 @@
 
19
   }
 
20
 
 
21
   bool IsUbuntu() const {
 
22
-    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuMantic;
 
23
+    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuNoble;
 
24
   }
 
25
 
 
26
   bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
 
27
Index: llvm-toolchain-17-17.0.3/clang/lib/Driver/Distro.cpp
 
28
===================================================================
 
29
--- llvm-toolchain-17-17.0.3.orig/clang/lib/Driver/Distro.cpp
 
30
+++ llvm-toolchain-17-17.0.3/clang/lib/Driver/Distro.cpp
 
31
@@ -94,6 +94,7 @@
 
32
                     .Case("kinetic", Distro::UbuntuKinetic)
 
33
                     .Case("lunar", Distro::UbuntuLunar)
 
34
                     .Case("mantic", Distro::UbuntuMantic)
 
35
+                    .Case("noble", Distro::UbuntuNoble)
 
36
                     .Default(Distro::UnknownDistro);
 
37
   return Version;
 
38
 }