diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-02-26 23:41:30 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-01 11:12:16 +0000 |
commit | 42c9988492254722846a986a436a6ae17af5e199 (patch) | |
tree | 5b453fa83f916b1871780e7eb677c493798b90d5 /meta | |
parent | c5992b47e81c9931a0e6ab376b8f06d667241fec (diff) | |
download | poky-42c9988492254722846a986a436a6ae17af5e199.tar.gz |
llvm: Fix build with c++17
Fixes
/benchmark_register.h:17:30: error: 'numeric_limits' is not a member of 'std'
| static const T kmax = std::numeric_limits<T>::max();
| ^~~~~~~~~~~~~~
(From OE-Core rev: e093eff9d94c02939ca398d59d66d1b1dbc8a12e)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/llvm/llvm/0001-nfc-Fix-missing-include.patch | 26 | ||||
-rw-r--r-- | meta/recipes-devtools/llvm/llvm_git.bb | 1 |
2 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-devtools/llvm/llvm/0001-nfc-Fix-missing-include.patch b/meta/recipes-devtools/llvm/llvm/0001-nfc-Fix-missing-include.patch new file mode 100644 index 0000000000..f6dee77ab2 --- /dev/null +++ b/meta/recipes-devtools/llvm/llvm/0001-nfc-Fix-missing-include.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From 3b7e611bd58ba842470d17374c550e14bceca5c7 Mon Sep 17 00:00:00 2001 | ||
2 | From: serge-sans-paille <sguelton@redhat.com> | ||
3 | Date: Tue, 10 Nov 2020 14:55:25 +0100 | ||
4 | Subject: [PATCH] [nfc] Fix missing include | ||
5 | |||
6 | Upstream-Status: Backport [https://github.com/llvm/llvm-project/commit/b498303066a63a203d24f739b2d2e0e56dca70d1] | ||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | llvm/utils/benchmark/src/benchmark_register.h | 1 + | ||
10 | 1 file changed, 1 insertion(+) | ||
11 | |||
12 | diff --git a/llvm/utils/benchmark/src/benchmark_register.h b/llvm/utils/benchmark/src/benchmark_register.h | ||
13 | index 0705e219f2fa..4caa5ad4da07 100644 | ||
14 | --- a/llvm/utils/benchmark/src/benchmark_register.h | ||
15 | +++ b/llvm/utils/benchmark/src/benchmark_register.h | ||
16 | @@ -1,6 +1,7 @@ | ||
17 | #ifndef BENCHMARK_REGISTER_H | ||
18 | #define BENCHMARK_REGISTER_H | ||
19 | |||
20 | +#include <limits> | ||
21 | #include <vector> | ||
22 | |||
23 | #include "check.h" | ||
24 | -- | ||
25 | 2.30.1 | ||
26 | |||
diff --git a/meta/recipes-devtools/llvm/llvm_git.bb b/meta/recipes-devtools/llvm/llvm_git.bb index 86def0878c..db6694339c 100644 --- a/meta/recipes-devtools/llvm/llvm_git.bb +++ b/meta/recipes-devtools/llvm/llvm_git.bb | |||
@@ -34,6 +34,7 @@ SRC_URI = "git://github.com/llvm/llvm-project.git;branch=${BRANCH} \ | |||
34 | file://0006-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch;striplevel=2 \ | 34 | file://0006-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch;striplevel=2 \ |
35 | file://0007-llvm-allow-env-override-of-exe-path.patch;striplevel=2 \ | 35 | file://0007-llvm-allow-env-override-of-exe-path.patch;striplevel=2 \ |
36 | file://0001-AsmMatcherEmitter-sort-ClassInfo-lists-by-name-as-we.patch;striplevel=2 \ | 36 | file://0001-AsmMatcherEmitter-sort-ClassInfo-lists-by-name-as-we.patch;striplevel=2 \ |
37 | file://0001-nfc-Fix-missing-include.patch;striplevel=2 \ | ||
37 | " | 38 | " |
38 | 39 | ||
39 | UPSTREAM_CHECK_GITTAGREGEX = "llvmorg-(?P<pver>\d+(\.\d+)+)" | 40 | UPSTREAM_CHECK_GITTAGREGEX = "llvmorg-(?P<pver>\d+(\.\d+)+)" |