Page MenuHomePhabricator

[CMAKE] Add DEBUG and DEBUG_LOCKORDER definitions to the Debug config
ClosedPublic

Authored by Fabien on Mar 6 2019, 12:39.

Details

Summary

This add definitions for DEBUG and DEBUG_LOCKORDER when the Debug
build type is used.
This allow the use of cmake -GNinja -DCMAKE_BUILD_TYPE=Debug as an
equivalent to configure --enable-debug.

Test Plan
mkdir buildcmake && cd buildcmake
cmake -GNinja .. -DCMAKE_BUILD_TYPE=Debug
ninja -v

Check that the -DDEBUG -DDEBUG_LOCKORDER flags are added to the
CXX compile lines.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
cmake_add_debug_definitions
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 5190
Build 8443: Bitcoin ABC Buildbot (legacy)
Build 8442: arc lint + arc unit

Event Timeline

Fabien edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Mar 15 2019, 16:51
This revision was automatically updated to reflect the committed changes.