diff --git a/CMakeLists.txt b/CMakeLists.txt index 06d700e..48fac52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,12 +12,12 @@ set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) -option(ENDO_TRACE "Enables debug output" OFF) +option(ENDO_TRACE_VM "Enables debug output" OFF) option(ENDO_TRACE_PARSER "Enables debug output for Parser" OFF) option(ENDO_TRACE_LEXER "Enables debug output for Lexer" OFF) if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") - set(ENDO_TRACE ON) + set(ENDO_TRACE_VM ON) set(ENDO_TRACE_PARSER ON) set(ENDO_TRACE_LEXER ON) endif() @@ -48,7 +48,7 @@ EndoThirdPartiesSummary2() message(STATUS "--------------------------------") message(STATUS " output flags ") message(STATUS "--------------------------------") -message(STATUS "endo trace ${ENDO_TRACE}") +message(STATUS "endo trace ${ENDO_TRACE_VM}") message(STATUS "endo trace parser ${ENDO_TRACE_PARSER}") message(STATUS "endo trace lexer ${ENDO_TRACE_LEXER}") message(STATUS "--------------------------------") diff --git a/src/shell/CMakeLists.txt b/src/shell/CMakeLists.txt index 3107b75..858dd30 100644 --- a/src/shell/CMakeLists.txt +++ b/src/shell/CMakeLists.txt @@ -26,8 +26,8 @@ target_compile_definitions(Shell PUBLIC META_WORKAROUND_LLVM_28385) target_link_libraries(Shell PUBLIC fmt::fmt-header-only vtparser crispy::core CoreVM InputEditor Threads::Threads util) -if(ENDO_TRACE) - target_compile_definitions(Shell PUBLIC ENDO_TRACE) +if(ENDO_TRACE_VM) + target_compile_definitions(Shell PUBLIC ENDO_TRACE_VM) endif() if(ENDO_TRACE_PARSER) target_compile_definitions(Shell PUBLIC ENDO_TRACE_PARSER) diff --git a/src/shell/Shell.cpp b/src/shell/Shell.cpp index 6e7d378..fe5c5ea 100644 --- a/src/shell/Shell.cpp +++ b/src/shell/Shell.cpp @@ -641,7 +641,7 @@ export class Shell final: public CoreVM::Runtime std::unique_ptr _currentProgram; CoreVM::Runner::Globals _globals; -#if defined(ENDO_TRACE) +#if defined(ENDO_TRACE_VM) bool _debugIR = true; bool _traceVM = true; #else