Page MenuHomePhabricator

Rebuild native executable when changes to the build system are made

Authored by deadalnix on Mar 31 2020, 18:19.



When the build rules needs to be updated, cmake isn't always rerun for the native build.

This adds a dependency file that ensures it does. This feature is limited to cmake, so there are no changes with other build systems and a call to clean might still be necessary.

Test Plan
ninja # Check native build isn't ran again.
ninja # Native build runs again.

Build with make as a generator and verify it's still good.

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

deadalnix created this revision.Mar 31 2020, 18:19
Herald added a reviewer: Restricted Project. · View Herald TranscriptMar 31 2020, 18:19
deadalnix updated this revision to Diff 17329.Mar 31 2020, 18:22

Always generate the dep file. It doesn't hurt on other targets and makes things simpler.

Fabien accepted this revision.Apr 1 2020, 07:44
This revision is now accepted and ready to land.Apr 1 2020, 07:44