mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
gallivm: Limit DEBUG workaround to LLVM < 7
As of version 7, LLVM uses LLVM_DEBUG instead of just DEBUG. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
26351f1ee3
commit
8218f6e22d
1 changed files with 4 additions and 0 deletions
|
|
@ -44,9 +44,11 @@
|
|||
|
||||
#include <llvm/Config/llvm-config.h>
|
||||
|
||||
#if LLVM_VERSION_MAJOR < 7
|
||||
// Workaround http://llvm.org/PR23628
|
||||
#pragma push_macro("DEBUG")
|
||||
#undef DEBUG
|
||||
#endif
|
||||
|
||||
#include <llvm/Config/llvm-config.h>
|
||||
#include <llvm-c/Core.h>
|
||||
|
|
@ -73,8 +75,10 @@
|
|||
#include <llvm/ExecutionEngine/JITEventListener.h>
|
||||
#endif
|
||||
|
||||
#if LLVM_VERSION_MAJOR < 7
|
||||
// Workaround http://llvm.org/PR23628
|
||||
#pragma pop_macro("DEBUG")
|
||||
#endif
|
||||
|
||||
#include "c11/threads.h"
|
||||
#include "os/os_thread.h"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue