HomePhabricator

[CMAKE] Override default flags

Description

[CMAKE] Override default flags

Summary:
This is a bit of simplification for setting the default optimization
flags value. The OverrideInitFlags.cmake is loaded at the project()
call and is used to write the CMAKE_<LANG>_FLAGS_<CONFIGURATION> to
the cache.
This allow for removing the NDEBUG flag for release type
configurations, as well as overriding the default CFLAGS for the debug
configuration.

This is a first step toward refactoring the compilation flag assignment.
This does not change the current behavior.

Test Plan:

ninja check

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D4765

Details

Provenance
FabienAuthored on Dec 10 2019, 16:16
FabienPushed on Dec 20 2019, 09:13
Reviewer
Restricted Project
Differential Revision
D4765: [CMAKE] Override default flags
Parents
rSTAGINGb209ed30d69b: Merge #13451: rpc: expose CBlockIndex::nTx in getblock(header)
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/15019