From 8218f6e22d0a7854249180c8df923f97e936d964 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Mon, 16 Sep 2019 17:06:19 +0200 Subject: [PATCH] gallivm: Limit DEBUG workaround to LLVM < 7 As of version 7, LLVM uses LLVM_DEBUG instead of just DEBUG. Reviewed-by: Timothy Arceri --- src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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" -- 2.30.2