Page MenuHomePhabricator

Also track dependencies of native targets

Authored by deadalnix on Apr 1 2020, 16:33.



Now we can have accurate dependency tracking for native targets when using ninja.

Test Plan
ninja # Check we don't rebuild any native target
touch ../src/secp256k1/src/group.h
ninja # Check that the gen_context step triggers.

Verify that the make build is still going.

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.Apr 1 2020, 16:33
Herald added a reviewer: Restricted Project. · View Herald TranscriptApr 1 2020, 16:33
deadalnix edited the test plan for this revision. (Show Details)Apr 1 2020, 16:36
Fabien requested changes to this revision.Apr 2 2020, 09:50
Fabien added a subscriber: Fabien.
Fabien added inline comments.
2 ↗(On Diff #17360)

featur => feature

61 ↗(On Diff #17360)

I'm surprised this works ? add_custom_command expects a single DEPENDS argument.

174 ↗(On Diff #17360)

Interesting, I would have expected the previous version to behave the same

This revision now requires changes to proceed.Apr 2 2020, 09:50
deadalnix added inline comments.Apr 2 2020, 16:42
174 ↗(On Diff #17360)

No, it fails hard.

deadalnix updated this revision to Diff 17394.Apr 2 2020, 16:54

Address comments

Fabien accepted this revision.Apr 2 2020, 17:10
This revision is now accepted and ready to land.Apr 2 2020, 17:10
This revision was automatically updated to reflect the committed changes.