diff options
author | tzik <mail@tzik.jp> | 2017-10-25 13:17:40 (GMT) |
---|---|---|
committer | tzik <mail@tzik.jp> | 2017-10-25 14:07:49 (GMT) |
commit | 0b6be4353e4ee330e9b72228ba768b4f2cb56399 (patch) | |
tree | 4a2ca23cf7a422cd5c271c627cfc0fbd15dea98d /src/deps_log.h | |
parent | e234a7bdb6c42f4539c0ab09b624f191287c2c10 (diff) | |
download | Ninja-0b6be4353e4ee330e9b72228ba768b4f2cb56399.zip Ninja-0b6be4353e4ee330e9b72228ba768b4f2cb56399.tar.gz Ninja-0b6be4353e4ee330e9b72228ba768b4f2cb56399.tar.bz2 |
Look up header dependencies on the first-output build
Ninja has special syntax to specify the first output of the given node.
E.g. it builds foo.o for foo.cc^. However, it doesn't work for
headers, as headers usually doesn't appear in the regular dependency
tree.
After this change, Ninja looks up header dependencies from .ninja_deps
to pick up a build target, so that it builds foo.o for foo.h^.
Diffstat (limited to 'src/deps_log.h')
-rw-r--r-- | src/deps_log.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/deps_log.h b/src/deps_log.h index 3812a28..1336078 100644 --- a/src/deps_log.h +++ b/src/deps_log.h @@ -86,6 +86,7 @@ struct DepsLog { }; bool Load(const string& path, State* state, string* err); Deps* GetDeps(Node* node); + Node* GetFirstReverseDepsNode(Node* node); /// Rewrite the known log entries, throwing away old data. bool Recompact(const string& path, string* err); |