Page MenuHomePhabricator

[CMAKE] Override default flags
ClosedPublic

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

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
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.