Skip to content

Commit

Permalink
add disable logging when DEBUG is off
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyinz committed Mar 28, 2023
1 parent fe2bf6d commit e8de563
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ if (DOBBY_DEBUG)
add_definitions(-DDOBBY_DEBUG)
add_definitions(-DLOGGING_DEBUG)
message(STATUS "[Dobby] Enable debug logging")
else ()
add_definitions(-DLOGGING_DISABLE)
message(STATUS "[Dobby] Disable logging")
endif ()

# Enable full floating point register pack
Expand Down Expand Up @@ -381,4 +384,4 @@ endif ()

if (SYSTEM.Darwin AND (NOT BUILDING_KERNEL))
include(cmake/platform/platform-darwin.cmake)
endif ()
endif ()

0 comments on commit e8de563

Please sign in to comment.