message: [XLA] Add some macros for tests to detect NDEBUG
diff: @@ -33,6 +33,7 @@ limitations under the License.
  #define DISABLED_ON_GPU_ROCM(X) X
  #define DISABLED_ON_INTERPRETER(X) X
  #define DISABLED_ON_INTERPRETER_TSAN(X) X
  +#define DISABLED_ON_DEBUG(X) X
  // We need this macro instead of pasting directly to support nesting
  // the DISABLED_ON_FOO macros, as in the definition of DISABLED_ON_CPU.
  @@ -69,6 +70,11 @@ limitations under the License.
  #endif // XLA_TEST_BACKEND_INTERPRETER
  +#ifndef NDEBUG
  +# undef DISABLED_ON_DEBUG
  +# define DISABLED_ON_DEBUG(X) XLA_TEST_PASTE(DISABLED_, X)
  +#endif // !NDEBUG
  +
  // clang-format on
  namespace xla {
  