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:
committed by
Michel Dänzer
parent
26351f1ee3
commit
8218f6e22d
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user