Page MenuHomePhabricator

[CMAKE] Override default flags

Authored by Fabien on Dec 19 2019, 10:49.



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

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

Test Plan
ninja check

Diff Detail

rABC Bitcoin ABC
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Dec 19 2019, 21:08
This revision was automatically updated to reflect the committed changes.