From 7956b80bf89423d6a9853390d855d4a9aa05b96c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20Wasserb=C3=A4ch?= Date: Sat, 11 Feb 2023 18:10:08 +0100 Subject: [PATCH] fix(FTBFS): gallivm: fix LLVM #include of Triple.h, moved to TargetParser Upstream moved Triple.h from ADT to TargetParser in LLVM 17. Reference: https://github.com/llvm/llvm-project/commit/62c7f035b4392c1933550eead6ddab35122720bc Reviewed-by: Jesse Natalie Reviewed-by: Karol Herbst Part-of: --- src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp index a79cbdf3baa..242168afd12 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp @@ -56,7 +56,6 @@ #include #include #include -#include #include #include #include @@ -67,6 +66,11 @@ #if LLVM_VERSION_MAJOR >= 15 #include #endif +#if LLVM_VERSION_MAJOR >= 17 +#include +#else +#include +#endif #if LLVM_VERSION_MAJOR < 11 #include