From 23a7b40904fd76a83afb0bd90c91bb0b4016266f Mon Sep 17 00:00:00 2001 From: Roman Levenstein Date: Tue, 5 Mar 2024 15:57:00 -0800 Subject: [PATCH] Fix the issue in the recent PR about debugging support Differential Revision: D54562793 --- include/glow/Support/Debug.h | 2 +- lib/Support/Debug.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/glow/Support/Debug.h b/include/glow/Support/Debug.h index 0ae74c71d..5e010baea 100644 --- a/include/glow/Support/Debug.h +++ b/include/glow/Support/Debug.h @@ -18,7 +18,7 @@ namespace glow { -#if !defined(NDEBUG) && !defined(DISABLE_DEBUG_GLOW) +#if !defined(DISABLE_DEBUG_GLOW) /// \returns true if \p type matches the activated debug type. bool isGlowCurrentDebugType(const char *type); diff --git a/lib/Support/Debug.cpp b/lib/Support/Debug.cpp index d44732a3c..4e3a45e5a 100755 --- a/lib/Support/Debug.cpp +++ b/lib/Support/Debug.cpp @@ -41,7 +41,7 @@ namespace glow { /// Exported boolean set by -debug-glow option. bool DebugFlag = false; -#if !defined(NDEBUG) && !defined(DISABLE_DEBUG_GLOW) +#if !defined(DISABLE_DEBUG_GLOW) bool isGlowCurrentDebugType(const char *type) { return std::find(DebugGlowOnly.begin(), DebugGlowOnly.end(), type) != DebugGlowOnly.end();