summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust/rust-llvm/0036-Add-cstdint-to-SmallVector-101761.patch
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2025-08-22 00:43:03 +0200
committerSteve Sakoman <steve@sakoman.com>2025-09-01 08:30:56 -0700
commit765333686d4c1921d8d4727ce3e439e294236492 (patch)
tree6b8fb2f9eb5ff0aef90c119d794653341ae94fa3 /meta/recipes-devtools/rust/rust-llvm/0036-Add-cstdint-to-SmallVector-101761.patch
parent52ac1f33095106e4ee8df5b1e4fb3ce0a95984fa (diff)
downloadpoky-765333686d4c1921d8d4727ce3e439e294236492.tar.gz
rust-llvm: fix build with gcc-15
As in meta-clang for clang-native: https://github.com/kraj/meta-clang/commit/f915bbfc71f7b58c38607b8407718bd8b5cefa44 (From OE-Core rev: 818750db213dc2c0daac4757d078092be6de3fe6) Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-devtools/rust/rust-llvm/0036-Add-cstdint-to-SmallVector-101761.patch')
-rw-r--r--meta/recipes-devtools/rust/rust-llvm/0036-Add-cstdint-to-SmallVector-101761.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/rust-llvm/0036-Add-cstdint-to-SmallVector-101761.patch b/meta/recipes-devtools/rust/rust-llvm/0036-Add-cstdint-to-SmallVector-101761.patch
new file mode 100644
index 0000000000..cf00eacbee
--- /dev/null
+++ b/meta/recipes-devtools/rust/rust-llvm/0036-Add-cstdint-to-SmallVector-101761.patch
@@ -0,0 +1,28 @@
1From 9c9071480edd4093b28a9e9a9980c2426d27344c Mon Sep 17 00:00:00 2001
2From: Sam James <sam@gentoo.org>
3Date: Fri, 2 Aug 2024 23:07:21 +0100
4Subject: [PATCH] Add `<cstdint>` to SmallVector (#101761)
5
6SmallVector uses `uint32_t`, `uint64_t` without including `<cstdint>`
7which fails to build w/ GCC 15 after a change in libstdc++ [0]
8
9[0] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3a817a4a5a6d94da9127af3be9f84a74e3076ee2
10
11Upstream-Status: Backport [https://github.com/llvm/llvm-project/commit/7e44305041d96b064c197216b931ae3917a34ac1]
12Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
13---
14 llvm/include/llvm/ADT/SmallVector.h | 1 +
15 1 file changed, 1 insertion(+)
16
17diff --git a/llvm/include/llvm/ADT/SmallVector.h b/llvm/include/llvm/ADT/SmallVector.h
18index 09676d792..17444147b 100644
19--- a/llvm/include/llvm/ADT/SmallVector.h
20+++ b/llvm/include/llvm/ADT/SmallVector.h
21@@ -19,6 +19,7 @@
22 #include <algorithm>
23 #include <cassert>
24 #include <cstddef>
25+#include <cstdint>
26 #include <cstdlib>
27 #include <cstring>
28 #include <functional>