From cfd026d5e2d0ee9131d50c8642403c603e7fbe31 Mon Sep 17 00:00:00 2001 From: Jonathan Lifflander Date: Thu, 11 Aug 2022 11:11:32 -0600 Subject: [PATCH] Disable preConfig (refer to issue #1908) --- src/vt/configs/debug/debug_print.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vt/configs/debug/debug_print.h b/src/vt/configs/debug/debug_print.h index 71f39d083c..979ab2850b 100644 --- a/src/vt/configs/debug/debug_print.h +++ b/src/vt/configs/debug/debug_print.h @@ -83,6 +83,10 @@ #define vt_debug_argument_option(opt) \ ::vt::debug::preConfig()->vt_debug_ ## opt +#if vt_check_enabled(production_build) +#define vt_debug_print_impl(force, inconfig, inmode, cat, ctx, ...) \ + vt_force_use(__VA_ARGS__) +#else #define vt_debug_print_impl(force, inconfig, inmode, cat, ctx, ...) \ vt::config::ApplyOp< \ vt::config::DebugPrintOp, \ @@ -91,6 +95,7 @@ vt::config::CtxEnum::ctx, \ vt::config::ModeEnum::inmode \ >::apply(vt_debug_argument_option(cat) or force, __VA_ARGS__) +#endif #define vt_debug_print(type, feature, ...) \ vt_debug_print_impl( \