Skip to content
Snippets Groups Projects

Makefiles: Normalize compiler-generated depfile paths

Merged Marc Chevrier requested to merge marc.chevrier/cmake:ccache-compiler-dependencies into master
All threads resolved!

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

Edited by Brad King

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading