2021-05-16 04:59:56 +02:00
|
|
|
From f0dccd957879ff642cfd921dda6e8b04dd35fec4 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Karol Herbst <kherbst@redhat.com>
|
|
|
|
Date: Tue, 2 Mar 2021 20:09:39 +0100
|
|
|
|
Subject: [PATCH] clover: Add missing include for llvm-12 build fix
|
|
|
|
|
|
|
|
Fixes: d1eab2b1eb1 ("clover: Fix build with llvm-12.")
|
|
|
|
Signed-off-by: Karol Herbst <kherbst@redhat.com>
|
|
|
|
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
|
|
|
|
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9372>
|
|
|
|
---
|
|
|
|
src/gallium/frontends/clover/llvm/compat.hpp | 1 +
|
|
|
|
1 file changed, 1 insertion(+)
|
|
|
|
|
|
|
|
diff --git a/src/gallium/frontends/clover/llvm/compat.hpp b/src/gallium/frontends/clover/llvm/compat.hpp
|
|
|
|
index d537819f292..380d16a8346 100644
|
srcpkgs/m*: convert patches to -Np1
```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
for p in ${template%/template}/patches/*; do
sed -i '
\,^[+-][+-][+-] /dev/null,b
/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
s,^[*][*][*] ,&a/,
/^--- /{
s,\(^--- \)\(./\)*,\1a/,
s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1,
s/[.][Oo][Rr][Ii][Gg]$//
s/[.]patched[.]\([^.]\)/.\1/
h
}
/^+++ -/{
g
s/^--- a/+++ b/
b
}
s,\(^+++ \)\(./\)*,\1b/,
' "$p"
done
sed -i '/^patch_args=/d' $template
done
```
2021-06-19 05:03:21 +02:00
|
|
|
--- a/src/gallium/frontends/clover/llvm/compat.hpp
|
|
|
|
+++ b/src/gallium/frontends/clover/llvm/compat.hpp
|
2021-05-16 04:59:56 +02:00
|
|
|
@@ -49,6 +49,7 @@
|
|
|
|
|
|
|
|
#include <clang/Basic/TargetInfo.h>
|
|
|
|
#include <clang/Frontend/CompilerInstance.h>
|
|
|
|
+#include <clang/Lex/PreprocessorOptions.h>
|
|
|
|
|
|
|
|
#if LLVM_VERSION_MAJOR >= 10
|
|
|
|
#include <llvm/Support/CodeGen.h>
|