diff --git a/lldb/source/API/SBFrame.cpp b/lldb/source/API/SBFrame.cpp index d53eb27344bd..cdf5a5a2a769 100644 --- a/lldb/source/API/SBFrame.cpp +++ b/lldb/source/API/SBFrame.cpp @@ -1440,7 +1440,9 @@ SBFrame::EvaluateExpression (const char *expr, const SBExpressionOptions &option { Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API)); +#ifndef LLDB_DISABLE_PYTHON Log *expr_log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS)); +#endif ExpressionResults exe_results = eExpressionSetupError; SBValue expr_result;