Skip to content
  • Marc Chevrier's avatar
    Makefiles: Normalize compiler-generated depfile paths · 6a6efdca
    Marc Chevrier authored and Brad King's avatar Brad King committed
    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
    6a6efdca