https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118223
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- -MP is what you want. See https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Preprocessor-Options.html#index-MP which even explains the usage: These dummy rules work around errors make gives if you remove header files without updating the Makefile to match.