https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121963
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > Ninja has the property that it never recurses into subdirs, instead all > command invocations are done from the same directory, typically the root of > the build tree. This sounds like a broken build system too.