fix: gallivm: fix LLVM #include of Host.h, moved to TargetParser
Upstream moved Host.h from Support to TargetParser in LLVM 17.
This shouldn't lead to a FTBFS, since there is a forwarding include left
behind. Sadly the added deprecation warning #pragma is invalid and thus
causes a build failure right away. But since we would have to follow the
move anyway in the future, just do it right away.
Reference: d768bf994f
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Closes: #8275
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21263>
This commit is contained in:

committed by
Marge Bot

parent
e3aa058317
commit
bb2db56ffe
@@ -35,9 +35,14 @@
|
||||
#include <llvm-c/Disassembler.h>
|
||||
#include <llvm/Support/raw_ostream.h>
|
||||
#include <llvm/Support/Format.h>
|
||||
#include <llvm/Support/Host.h>
|
||||
#include <llvm/IR/Module.h>
|
||||
|
||||
#if LLVM_VERSION_MAJOR >= 17
|
||||
#include <llvm/TargetParser/Host.h>
|
||||
#else
|
||||
#include <llvm/Support/Host.h>
|
||||
#endif
|
||||
|
||||
#include "util/u_math.h"
|
||||
#include "util/u_debug.h"
|
||||
|
||||
|
@@ -59,16 +59,18 @@
|
||||
#include <llvm/Analysis/TargetLibraryInfo.h>
|
||||
#include <llvm/ExecutionEngine/SectionMemoryManager.h>
|
||||
#include <llvm/Support/CommandLine.h>
|
||||
#include <llvm/Support/Host.h>
|
||||
#include <llvm/Support/PrettyStackTrace.h>
|
||||
#include <llvm/ExecutionEngine/ObjectCache.h>
|
||||
#include <llvm/Support/TargetSelect.h>
|
||||
#if LLVM_VERSION_MAJOR >= 15
|
||||
#include <llvm/Support/MemoryBuffer.h>
|
||||
#endif
|
||||
|
||||
#if LLVM_VERSION_MAJOR >= 17
|
||||
#include <llvm/TargetParser/Host.h>
|
||||
#include <llvm/TargetParser/Triple.h>
|
||||
#else
|
||||
#include <llvm/Support/Host.h>
|
||||
#include <llvm/ADT/Triple.h>
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user