canonicalize paths loaded from depfiles
authorEvan Martin <martine@danga.com>
Mon, 7 Mar 2011 17:56:18 +0000 (09:56 -0800)
committerEvan Martin <martine@danga.com>
Mon, 7 Mar 2011 17:56:18 +0000 (09:56 -0800)
commita5980c6bb2d6ccb6ffed2d92304c55ba94622963
tree76f248bf8fcddadd9cb89d95ea0a9db54ac4cf11
parentad0b24ea377c447b1b282be986cdfc1343c387ff
canonicalize paths loaded from depfiles

If a C file #includes "../foo.cc", then gcc will emit paths like
"bar/../foo.cc" into the dependency file; canonicalize these when we
load the file.

Add a test module for testing the graph dirty recomputation directly,
without all the build classes around it.
build.ninja
src/graph.cc
src/graph.h
src/graph_test.cc [new file with mode: 0644]