HomePhabricator

Rebuild native executable when changes to the build system are made

Description

Rebuild native executable when changes to the build system are made

Summary:
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
ninja # Check native build isn't ran again.
touch build.ninja
ninja # Native build runs again.

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

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
deadalnixAuthored on Mar 30 2020, 19:08
FabienPushed on Apr 1 2020, 13:07
Reviewer
Restricted Project
Differential Revision
D5624: Rebuild native executable when changes to the build system are made
Parents
rSTAGING805ed73c0c5c: build: prune dbus from depends
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/17355, tag: phabricator/base/17354, tag: phabricator/base/17351