File: ubuntu-plucky.patch

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-10
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,999,216 kB
  • sloc: cpp: 6,951,711; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,033; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,252; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (43 lines) | stat: -rw-r--r-- 1,849 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From 32b55f375feaf6bcc2c870964a0bf087cf3c22bf Mon Sep 17 00:00:00 2001
From: Sylvestre Ledru <sylvestre@debian.org>
Date: Thu, 17 Oct 2024 21:32:20 +0200
Subject: [PATCH] Add support of the next Ubuntu (Ubuntu 25.04 - Plucky Puffin)

---
 clang/include/clang/Driver/Distro.h | 3 ++-
 clang/lib/Driver/Distro.cpp         | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

Index: llvm-toolchain-19_19.1.2~++20241028100023+d8752671e825/clang/include/clang/Driver/Distro.h
===================================================================
--- llvm-toolchain-19_19.1.2~++20241028100023+d8752671e825.orig/clang/include/clang/Driver/Distro.h
+++ llvm-toolchain-19_19.1.2~++20241028100023+d8752671e825/clang/include/clang/Driver/Distro.h
@@ -80,6 +80,7 @@ public:
     UbuntuMantic,
     UbuntuNoble,
     UbuntuOracular,
+    UbuntuPlucky,
     UnknownDistro
   };
 
@@ -131,7 +132,7 @@ public:
   }
 
   bool IsUbuntu() const {
-    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuOracular;
+    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuPlucky;
   }
 
   bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
Index: llvm-toolchain-19_19.1.2~++20241028100023+d8752671e825/clang/lib/Driver/Distro.cpp
===================================================================
--- llvm-toolchain-19_19.1.2~++20241028100023+d8752671e825.orig/clang/lib/Driver/Distro.cpp
+++ llvm-toolchain-19_19.1.2~++20241028100023+d8752671e825/clang/lib/Driver/Distro.cpp
@@ -96,6 +96,7 @@ static Distro::DistroType DetectLsbRelea
                     .Case("mantic", Distro::UbuntuMantic)
                     .Case("noble", Distro::UbuntuNoble)
                     .Case("oracular", Distro::UbuntuOracular)
+                    .Case("plucky", Distro::UbuntuPlucky)
                     .Default(Distro::UnknownDistro);
   return Version;
 }