Skip to content

Autogen: Restore target-ordering dependencies in Makefiles with DEPFILE

Brad King requested to merge brad.king/cmake:autogen-makefile-depfile into master

In !4221 (merged) the _autogen_timestamp_deps target was given target ordering dependencies through its custom command rather than direct target dependencies as on the _autogen target. Then !6558 (merged) converted some target-level dependencies into file-level dependencies on the custom command. This only works with a monolithic build graph like Ninja.

Since !8570 (merged) we use the _autogen_timestamp_deps target in Makefile generators too. This exposed the missing target ordering dependency.

Fixes: #25766 (closed)
Backport: release
Manual-backport: release-3.28

Merge request reports