summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <raphael.kubo.da.costa@intel.com>2021-11-01 11:25:36 +0100
committerKhem Raj <raj.khem@gmail.com>2021-11-01 06:20:34 -0700
commit5ac36e49ab0f4b9bc72a3c747841c1f9e54e640a (patch)
treec935bf42409cd47ebb79d5f340df2f16dcbdcc62
parent52c7b51ab9ebe426a77559802333d8479864912e (diff)
downloadmeta-clang-5ac36e49ab0f4b9bc72a3c747841c1f9e54e640a.tar.gz
clang: Backport missing include fix from upstream.
This affects LLVM < 12, so backport directly to dunfell. This adds a missing include that was breaking the build with recent libstdc++ releases on the host system (versions 11 and above). Signed-off-by: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
-rw-r--r--recipes-devtools/clang/clang/0028-nfc-Fix-missing-include.patch28
-rw-r--r--recipes-devtools/clang/common.inc1
2 files changed, 29 insertions, 0 deletions
diff --git a/recipes-devtools/clang/clang/0028-nfc-Fix-missing-include.patch b/recipes-devtools/clang/clang/0028-nfc-Fix-missing-include.patch
new file mode 100644
index 0000000..250e0da
--- /dev/null
+++ b/recipes-devtools/clang/clang/0028-nfc-Fix-missing-include.patch
@@ -0,0 +1,28 @@
1From b498303066a63a203d24f739b2d2e0e56dca70d1 Mon Sep 17 00:00:00 2001
2From: serge-sans-paille <sguelton@redhat.com>
3Date: Tue, 10 Nov 2020 14:55:25 +0100
4Subject: [PATCH] [nfc] Fix missing include
5
6Upstream-Status: Backport [https://github.com/llvm/llvm-project/commit/b498303066a63a203d24f739b2d2e0e56dca70d1]
7
8Signed-off-by: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
9
10---
11 llvm/utils/benchmark/src/benchmark_register.h | 1 +
12 1 file changed, 1 insertion(+)
13
14diff --git a/llvm/utils/benchmark/src/benchmark_register.h b/llvm/utils/benchmark/src/benchmark_register.h
15index 0705e219f2fa..4caa5ad4da07 100644
16--- a/llvm/utils/benchmark/src/benchmark_register.h
17+++ b/llvm/utils/benchmark/src/benchmark_register.h
18@@ -1,6 +1,7 @@
19 #ifndef BENCHMARK_REGISTER_H
20 #define BENCHMARK_REGISTER_H
21
22+#include <limits>
23 #include <vector>
24
25 #include "check.h"
26--
272.31.1
28
diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc
index a72d12e..b070428 100644
--- a/recipes-devtools/clang/common.inc
+++ b/recipes-devtools/clang/common.inc
@@ -35,6 +35,7 @@ SRC_URI = "\
35 file://0025-clang-driver-Add-dyld-prefix-when-checking-sysroot-f.patch \ 35 file://0025-clang-driver-Add-dyld-prefix-when-checking-sysroot-f.patch \
36 file://0026-OpenCL-Fix-support-for-cl_khr_mipmap_image_writes.patch \ 36 file://0026-OpenCL-Fix-support-for-cl_khr_mipmap_image_writes.patch \
37 file://0027-InstCombine-visitBitCast-do-not-crash-on-weird-bitca.patch;patchdir=llvm \ 37 file://0027-InstCombine-visitBitCast-do-not-crash-on-weird-bitca.patch;patchdir=llvm \
38 file://0028-nfc-Fix-missing-include.patch \
38" 39"
39 40
40# Fallback to no-PIE if not set 41# Fallback to no-PIE if not set