This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -MM and -MMD are not ignoring #include <xx.h> files


Hi Tim,

>Now I thought that -MM should not include <a.h> in the depenancy list.

>What's going on. What am I missing?

What's going on is that you are using -I instead of -idirafter.

-I adds a path to the general include path list.

-idirafter adds a path to the system include path list.

The -MM and -MMD filter out the system include path list, not the general include path list.

HTH,
--Eljay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]