1
0
Fork 0
forked from fun/fun

Added -DFUN_DEBUG=ON flag as cmake option to enable debug messages. Default is -DFUN_DEBUG=off.

This commit is contained in:
Johannes Findeisen 2025-09-14 15:48:28 +02:00
commit 01fa5dfdb7
2 changed files with 11 additions and 0 deletions

View file

@ -17,6 +17,13 @@ target_include_directories(fun_core PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/src
)
# Debug option to enable verbose parser/VM logging
option(FUN_DEBUG "Enable extra debug logging in Fun" OFF)
if(FUN_DEBUG)
message(STATUS "FUN_DEBUG enabled: building with verbose debug logging")
target_compile_definitions(fun_core PUBLIC FUN_DEBUG=1)
endif()
# Playground / interpreter (future /usr/bin/fun)
add_executable(fun
src/fun.c