diff options
| -rw-r--r-- | meta/recipes-devtools/rust/rust-llvm.inc | 4 | ||||
| -rw-r--r-- | meta/recipes-devtools/rust/rust-llvm/0003-Support-Add-missing-cstdint-header-to-Signals.h.patch | 32 |
2 files changed, 35 insertions, 1 deletions
diff --git a/meta/recipes-devtools/rust/rust-llvm.inc b/meta/recipes-devtools/rust/rust-llvm.inc index 5c2ccdac9a..e645e7a7ac 100644 --- a/meta/recipes-devtools/rust/rust-llvm.inc +++ b/meta/recipes-devtools/rust/rust-llvm.inc | |||
| @@ -3,7 +3,9 @@ LICENSE ?= "Apache-2.0-with-LLVM-exception" | |||
| 3 | HOMEPAGE = "http://www.rust-lang.org" | 3 | HOMEPAGE = "http://www.rust-lang.org" |
| 4 | 4 | ||
| 5 | SRC_URI += "file://0002-llvm-allow-env-override-of-exe-path.patch;striplevel=2 \ | 5 | SRC_URI += "file://0002-llvm-allow-env-override-of-exe-path.patch;striplevel=2 \ |
| 6 | file://0001-AsmMatcherEmitter-sort-ClassInfo-lists-by-name-as-we.patch;striplevel=2" | 6 | file://0001-AsmMatcherEmitter-sort-ClassInfo-lists-by-name-as-we.patch;striplevel=2 \ |
| 7 | file://0003-Support-Add-missing-cstdint-header-to-Signals.h.patch;striplevel=2 \ | ||
| 8 | " | ||
| 7 | 9 | ||
| 8 | S = "${RUSTSRC}/src/llvm-project/llvm" | 10 | S = "${RUSTSRC}/src/llvm-project/llvm" |
| 9 | 11 | ||
diff --git a/meta/recipes-devtools/rust/rust-llvm/0003-Support-Add-missing-cstdint-header-to-Signals.h.patch b/meta/recipes-devtools/rust/rust-llvm/0003-Support-Add-missing-cstdint-header-to-Signals.h.patch new file mode 100644 index 0000000000..6ed23aa9c5 --- /dev/null +++ b/meta/recipes-devtools/rust/rust-llvm/0003-Support-Add-missing-cstdint-header-to-Signals.h.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From a94bf34221fc4519bd8ec72560c2d363ffe2de4c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Sergei Trofimovich <slyich@gmail.com> | ||
| 3 | Date: Mon, 23 May 2022 08:03:23 +0100 | ||
| 4 | Subject: [PATCH] [Support] Add missing <cstdint> header to Signals.h | ||
| 5 | |||
| 6 | Without the change llvm build fails on this week's gcc-13 snapshot as: | ||
| 7 | |||
| 8 | [ 0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.o | ||
| 9 | In file included from llvm/lib/Support/Signals.cpp:14: | ||
| 10 | llvm/include/llvm/Support/Signals.h:119:8: error: variable or field 'CleanupOnSignal' declared void | ||
| 11 | 119 | void CleanupOnSignal(uintptr_t Context); | ||
| 12 | | ^~~~~~~~~~~~~~~ | ||
| 13 | |||
| 14 | Upstream-Status: Backport [llvmorg-15.0.0 ff1681ddb303223973653f7f5f3f3435b48a1983] | ||
| 15 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
| 16 | Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com> | ||
| 17 | --- | ||
| 18 | llvm/include/llvm/Support/Signals.h | 1 + | ||
| 19 | 1 file changed, 1 insertion(+) | ||
| 20 | |||
| 21 | diff --git a/llvm/include/llvm/Support/Signals.h b/llvm/include/llvm/Support/Signals.h | ||
| 22 | index 44f5a750ff5c..937e0572d4a7 100644 | ||
| 23 | --- a/llvm/include/llvm/Support/Signals.h | ||
| 24 | +++ b/llvm/include/llvm/Support/Signals.h | ||
| 25 | @@ -14,6 +14,7 @@ | ||
| 26 | #ifndef LLVM_SUPPORT_SIGNALS_H | ||
| 27 | #define LLVM_SUPPORT_SIGNALS_H | ||
| 28 | |||
| 29 | +#include <cstdint> | ||
| 30 | #include <string> | ||
| 31 | |||
| 32 | namespace llvm { | ||
