summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2021-05-02 16:46:55 -0400
committerCraig Andrews <candrews@gentoo.org>2021-05-02 16:47:42 -0400
commitd2316f6905026dd1d4e8f400d26f5046bb63b6b1 (patch)
treede85e80bffc3397789ad9498ce92cce7391e42c0 /sys-devel/llvm-roc
parentgames-fps/blackshades: tweak for gcc-11 (diff)
downloadgentoo-d2316f6905026dd1d4e8f400d26f5046bb63b6b1.tar.gz
gentoo-d2316f6905026dd1d4e8f400d26f5046bb63b6b1.tar.bz2
gentoo-d2316f6905026dd1d4e8f400d26f5046bb63b6b1.zip
sys-devel/llvm-roc: Fix missing include
Fixes building with GCC 11 Closes: https://bugs.gentoo.org/787569 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'sys-devel/llvm-roc')
-rw-r--r--sys-devel/llvm-roc/files/llvm-roc-4.1.0-fix-missing-include.patch21
-rw-r--r--sys-devel/llvm-roc/llvm-roc-4.1.0.ebuild1
-rw-r--r--sys-devel/llvm-roc/llvm-roc-4.1.1.ebuild1
3 files changed, 23 insertions, 0 deletions
diff --git a/sys-devel/llvm-roc/files/llvm-roc-4.1.0-fix-missing-include.patch b/sys-devel/llvm-roc/files/llvm-roc-4.1.0-fix-missing-include.patch
new file mode 100644
index 000000000000..4914ba2e7f98
--- /dev/null
+++ b/sys-devel/llvm-roc/files/llvm-roc-4.1.0-fix-missing-include.patch
@@ -0,0 +1,21 @@
+From b498303066a63a203d24f739b2d2e0e56dca70d1 Mon Sep 17 00:00:00 2001
+From: serge-sans-paille <sguelton@redhat.com>
+Date: Tue, 10 Nov 2020 14:55:25 +0100
+Subject: [PATCH] [nfc] Fix missing include
+
+---
+ llvm/utils/benchmark/src/benchmark_register.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/utils/benchmark/src/benchmark_register.h b/llvm/utils/benchmark/src/benchmark_register.h
+index 0705e219f2fa2..4caa5ad4da079 100644
+--- a/utils/benchmark/src/benchmark_register.h
++++ b/utils/benchmark/src/benchmark_register.h
+@@ -1,6 +1,7 @@
+ #ifndef BENCHMARK_REGISTER_H
+ #define BENCHMARK_REGISTER_H
+
++#include <limits>
+ #include <vector>
+
+ #include "check.h"
diff --git a/sys-devel/llvm-roc/llvm-roc-4.1.0.ebuild b/sys-devel/llvm-roc/llvm-roc-4.1.0.ebuild
index 1f4d2b605806..e571fd4ca56c 100644
--- a/sys-devel/llvm-roc/llvm-roc-4.1.0.ebuild
+++ b/sys-devel/llvm-roc/llvm-roc-4.1.0.ebuild
@@ -24,6 +24,7 @@ S="${WORKDIR}/llvm-project-rocm-${PV}/llvm"
PATCHES=(
"${FILESDIR}/${PN}-3.7.0-current_pos.patch"
+ "${FILESDIR}/${PN}-4.1.0-fix-missing-include.patch"
)
CMAKE_BUILD_TYPE=RelWithDebInfo
diff --git a/sys-devel/llvm-roc/llvm-roc-4.1.1.ebuild b/sys-devel/llvm-roc/llvm-roc-4.1.1.ebuild
index 1736b1e88104..68df2726a379 100644
--- a/sys-devel/llvm-roc/llvm-roc-4.1.1.ebuild
+++ b/sys-devel/llvm-roc/llvm-roc-4.1.1.ebuild
@@ -24,6 +24,7 @@ S="${WORKDIR}/llvm-project-rocm-${PV}/llvm"
PATCHES=(
"${FILESDIR}/${PN}-3.7.0-current_pos.patch"
+ "${FILESDIR}/${PN}-4.1.0-fix-missing-include.patch"
)
CMAKE_BUILD_TYPE=RelWithDebInfo