Skip to content

Commit 23a7b40

Browse files
Roman Levensteinfacebook-github-bot
Roman Levenstein
authored andcommitted
Fix the issue in the recent PR about debugging support
Differential Revision: D54562793
1 parent 0c03ae9 commit 23a7b40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: include/glow/Support/Debug.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
namespace glow {
2020

21-
#if !defined(NDEBUG) && !defined(DISABLE_DEBUG_GLOW)
21+
#if !defined(DISABLE_DEBUG_GLOW)
2222

2323
/// \returns true if \p type matches the activated debug type.
2424
bool isGlowCurrentDebugType(const char *type);

Diff for: lib/Support/Debug.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace glow {
4141
/// Exported boolean set by -debug-glow option.
4242
bool DebugFlag = false;
4343

44-
#if !defined(NDEBUG) && !defined(DISABLE_DEBUG_GLOW)
44+
#if !defined(DISABLE_DEBUG_GLOW)
4545
bool isGlowCurrentDebugType(const char *type) {
4646
return std::find(DebugGlowOnly.begin(), DebugGlowOnly.end(), type) !=
4747
DebugGlowOnly.end();

0 commit comments

Comments
 (0)