You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add --depfile flag to inputs and multi-inputs tools.
This forces the load of depfile entries from either the Ninja log
or explicit depfiles to be performed when visiting the graph, thus
making them visible in the result.
- graph.h, graph.cc: Add optional ImplicitDepLoader* argument to
InputsCollector constructor, and if provided, use it to load deps
during the visit if needed.
- ninja.cc: Modify `inputs` and `multi-inputs` implementation to
support a new `--depfile` or `-D` flag, and create an
ImplicitDepLoader instance when it is used to initialize the
InputsCollector instances.
NOTE: using std::make_unique<> fails on our MacOS CI builder, which
still uses -std=gnu+11 for some unknown reason, so this uses
`std::unique_ptr<T>::reset(new T(...))` instead :-/
- output_test.py: Add regression tests + fix minor typing issues.
Fixes#2618
0 commit comments