diff options
author | Fredrik Medley <fredrik.medley@gmail.com> | 2015-09-03 19:27:19 (GMT) |
---|---|---|
committer | Fredrik Medley <fredrik.medley@gmail.com> | 2015-09-03 19:45:42 (GMT) |
commit | 3f5b682bfd1f13c55a1eb6b783cbd3c61f664a7b (patch) | |
tree | 6cef91bf274915f779d56c40893503c944efe718 /doc | |
parent | 2810ffb2b5ff92b38396cc711775801abb3ce634 (diff) | |
download | Ninja-3f5b682bfd1f13c55a1eb6b783cbd3c61f664a7b.zip Ninja-3f5b682bfd1f13c55a1eb6b783cbd3c61f664a7b.tar.gz Ninja-3f5b682bfd1f13c55a1eb6b783cbd3c61f664a7b.tar.bz2 |
Describe why to use relative paths
Ninja does resolve relative paths and file system links in paths.
Therefore, such paths pointing to the same file will not match and may
lead to an invalid dependency graph.
Signed-off-by: Fredrik Medley <fredrik.medley@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual.asciidoc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/manual.asciidoc b/doc/manual.asciidoc index 003c71e..47b7456 100644 --- a/doc/manual.asciidoc +++ b/doc/manual.asciidoc @@ -598,6 +598,11 @@ rule cc command = cl /showIncludes -c $in /Fo$out ---- +If the include directory directives are using absolute paths, your depfile +may result in a mixture of relative and absolute paths. Paths used by other +build rules need to match exactly. Therefore, it is recommended to use +relative paths in these cases. + [[ref_pool]] Pools ~~~~~ @@ -889,6 +894,9 @@ header file before starting a subsequent compilation step. (Once the header is used in compilation, a generated dependency file will then express the implicit dependency.) +File paths are compared as is, which means that an absolute path and a +relative path, pointing to the same file, are considered different by Ninja. + Variable expansion ~~~~~~~~~~~~~~~~~~ |