Skip to content

Commit

Permalink
Fix the issue in the recent PR about debugging support
Browse files Browse the repository at this point in the history
Reviewed By: SameerAsal

Differential Revision: D54562793
  • Loading branch information
Roman Levenstein authored and facebook-github-bot committed Mar 6, 2024
1 parent 0c03ae9 commit 509c244
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/glow/Support/Debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/Support/Debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 509c244

Please sign in to comment.