summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust/rust-llvm/0038-Add-missing-include-to-X86MCTargetDesc.h-123320.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/rust/rust-llvm/0038-Add-missing-include-to-X86MCTargetDesc.h-123320.patch')
-rw-r--r--meta/recipes-devtools/rust/rust-llvm/0038-Add-missing-include-to-X86MCTargetDesc.h-123320.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/rust-llvm/0038-Add-missing-include-to-X86MCTargetDesc.h-123320.patch b/meta/recipes-devtools/rust/rust-llvm/0038-Add-missing-include-to-X86MCTargetDesc.h-123320.patch
new file mode 100644
index 0000000000..9bfbe9e2ed
--- /dev/null
+++ b/meta/recipes-devtools/rust/rust-llvm/0038-Add-missing-include-to-X86MCTargetDesc.h-123320.patch
@@ -0,0 +1,32 @@
1From 72dc74c42eb9d9940b36c6804a4e4ac757370324 Mon Sep 17 00:00:00 2001
2From: Stephan Hageboeck <stephan.hageboeck@cern.ch>
3Date: Mon, 20 Jan 2025 17:52:47 +0100
4Subject: [PATCH] Add missing include to X86MCTargetDesc.h (#123320)
5
6In gcc-15, explicit includes of `<cstdint>` are required when fixed-size
7integers are used. In this file, this include only happened as a side
8effect of including SmallVector.h
9
10Although llvm compiles fine, the root-project would benefit from
11explicitly including it here, so we can backport the patch.
12
13Maybe interesting for @hahnjo and @vgvassilev
14
15Upstream-Status: Backport [https://github.com/llvm/llvm-project/commit/7abf44069aec61eee147ca67a6333fc34583b524]
16Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
17---
18 llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h | 1 +
19 1 file changed, 1 insertion(+)
20
21diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h b/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h
22index 437a7bd6f..fd7d79484 100644
23--- a/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h
24+++ b/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h
25@@ -13,6 +13,7 @@
26 #ifndef LLVM_LIB_TARGET_X86_MCTARGETDESC_X86MCTARGETDESC_H
27 #define LLVM_LIB_TARGET_X86_MCTARGETDESC_X86MCTARGETDESC_H
28
29+#include <cstdint>
30 #include <memory>
31 #include <string>
32