Skip to content

Commit

Permalink
rename ENDO_TRACE -> ENDO_TRACE_VM
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaraslaut committed Dec 17, 2023
1 parent 5222a9e commit 3dbe739
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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 "--------------------------------")
4 changes: 2 additions & 2 deletions src/shell/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/shell/Shell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ export class Shell final: public CoreVM::Runtime
std::unique_ptr<CoreVM::Program> _currentProgram;
CoreVM::Runner::Globals _globals;

#if defined(ENDO_TRACE)
#if defined(ENDO_TRACE_VM)
bool _debugIR = true;
bool _traceVM = true;
#else
Expand Down

0 comments on commit 3dbe739

Please sign in to comment.