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();