configure_file: canonicalize paths in dependencies
fix duplicate phony edges when configure_file is called on the same file from multiple directories
This addresses the issue outlined here: https://github.com/ninja-build/ninja/pull/1425#issuecomment-435854564
This change affects all generators since the easiest way was to address the issue of ..
in paths directly in the configure_file
implementation. Also, I've normalized the output as well even though that doesn't seem necessary.
If needed I can revert the output change or even try to make this change affect the ninja generator only.
Fixes: #18584 (closed)
Topic-rename: configure_file-canonical-deps
Merge request reports
Activity
- Resolved by Frank Benkstein
added workflow:wip label
- Resolved by Frank Benkstein
@fbenkstein thanks for working on this. Please open a dedicated issue in CMake's tracker for this. It should be tracked here and not just in Ninja's issue tracker. Then please add a
Fixes: #NNNNN
footer to the commit message to mention the CMake issue number.
I've filed #18584 (closed).
added 1 commit
- 430ca507 - collapse ".." in configure_file inputs and outputs
added 1 commit
- 70fc32cb - configure_file: canonicalize input and output path in dependencies
- Resolved by Brad King
@fbenkstein thanks. I updated your branch to revise the commit message and squash the test (we like all commits to have passing tests). Please fetch and reset your checkout (no push needed).
assigned to @brad.king
changed milestone to %3.14.0
added workflow:in-review label and removed workflow:wip label
added 1 commit
- 6199637e - configure_file: canonicalize input and output path in dependencies
added workflow:nightly-testing label and removed workflow:in-review label