Skip to content

Commit 6da6357

Browse files
committed
[mlir] fix Debug unittests
Flag NDEBUG needed to be changed to LLVM_ENABLE_ABI_BREAKING_CHECKS
1 parent c97bb5d commit 6da6357

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mlir/unittests/Support/DebugActionTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "gmock/gmock.h"
1111

1212
// DebugActionManager is only enabled in DEBUG mode.
13-
#ifndef NDEBUG
13+
#if LLVM_ENABLE_ABI_BREAKING_CHECKS
1414

1515
using namespace mlir;
1616

mlir/unittests/Support/DebugCounterTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
using namespace mlir;
1313

1414
// DebugActionManager is only enabled in DEBUG mode.
15-
#ifndef NDEBUG
15+
#if LLVM_ENABLE_ABI_BREAKING_CHECKS
1616

1717
namespace {
1818

0 commit comments

Comments
 (0)