Makefiles: Normalize compiler-generated depfile paths
Even though Makefile generators pass source files and include
directories by absolute path to the compiler, the compiler may generate
depfile paths relative to the current working directory. For example,
ccache
with CCACHE_BASEDIR
may transform paths this way. When
reading a depfile, convert relative dependencies to absolute paths
before placing them in compiler_depend.make
, which is later evaluated
in the top-level build directory.
Fixes: #22364 (closed)
Backport: release:HEAD^2
Topic-rename: makefile-normalize-depfile
Merge request reports
Activity
changed milestone to %3.21.0
added workflow:in-review label
- Resolved by Brad King
@jrosdahl can you, if possible, test this fix?
@brad.king Maybe this fix must be also propagated to
3.20.*
version because the problem was introduced in3.20.0
.
added gen:makefiles label
added 1 commit
- 6a6efdca - Makefiles: Normalize compiler-generated depfile paths
assigned to @brad.king
added 1356 commits
-
6a6efdca...6372e74e - 1355 commits from branch
cmake:master
- 6bc6ffb9 - Merge branch 'backport-3.20-makefile-normalize-depfile'
-
6a6efdca...6372e74e - 1355 commits from branch
added 149 commits
-
6bc6ffb9...4f69bf09 - 148 commits from branch
cmake:master
- 30926620 - Merge branch 'backport-3.21-makefile-normalize-depfile'
-
6bc6ffb9...4f69bf09 - 148 commits from branch
added workflow:nightly-testing label and removed workflow:in-review label
mentioned in commit 7fdd8066
mentioned in commit 0cd8bba0
removed workflow:nightly-testing label
mentioned in commit 77abc295
changed milestone to %3.20.6