Renames options for BLOCK/STACK debugging and fixes indentation

This commit is contained in:
John Richards
2020-10-20 00:42:44 -04:00
parent 05c373b07a
commit 0573318528
2 changed files with 8 additions and 8 deletions

View File

@@ -5,15 +5,15 @@ set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Debug options.
option(USE_BLOCK_DEBUG "Enable block debugging" OFF)
option(USE_STACK_DEBUG "Enable stack debugging" OFF)
option(ENABLE_BLOCK_DEBUG "Enable block debugging" OFF)
option(ENABLE_STACK_DEBUG "Enable stack debugging" OFF)
# Turn debug defs on if they're enabled.
if (USE_BLOCK_DEBUG)
add_definitions(-DBLOCK_DEBUG)
if (ENABLE_BLOCK_DEBUG)
add_definitions(-DBLOCK_DEBUG)
endif()
if (USE_STACK_DEBUG)
add_definitions(-DSTACK_DEBUG)
if (ENABLE_STACK_DEBUG)
add_definitions(-DSTACK_DEBUG)
endif()
# For generating the bytes tables

View File

@@ -20,8 +20,8 @@ https://github.com/zrax/pycdc
| Option | Description |
| --- | --- |
| `-DCMAKE_BUILD_TYPE=Debug` | Produce debugging symbols |
| `-DUSE_BLOCK_DEBUG=ON` | Enable block debugging output |
| `-DUSE_STACK_DEBUG=ON` | Enable stack debugging output |
| `-DENABLE_BLOCK_DEBUG=ON` | Enable block debugging output |
| `-DENABLE_STACK_DEBUG=ON` | Enable stack debugging output |
* Build the generated project or makefile
* For projects (e.g. MSVC), open the generated project file and build it