From: Michel Dänzer Date: Mon, 16 Sep 2019 15:06:19 +0000 (+0200) Subject: gallivm: Limit DEBUG workaround to LLVM < 7 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8218f6e22d0a7854249180c8df923f97e936d964;p=mesa.git gallivm: Limit DEBUG workaround to LLVM < 7 As of version 7, LLVM uses LLVM_DEBUG instead of just DEBUG. Reviewed-by: Timothy Arceri --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp index 52e9f7bc770..67ae1fa1e93 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp @@ -44,9 +44,11 @@ #include +#if LLVM_VERSION_MAJOR < 7 // Workaround http://llvm.org/PR23628 #pragma push_macro("DEBUG") #undef DEBUG +#endif #include #include @@ -73,8 +75,10 @@ #include #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"