This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: cpp: How to compute dependencies of a header file
- From: Ian Lance Taylor <iant at google dot com>
- To: RÃmi Delmas <remi dot delmas at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 08 Apr 2011 16:48:23 -0700
- Subject: Re: cpp: How to compute dependencies of a header file
- References: <BANLkTineim6JpAeQEVfSLr8fzvqJotvGAQ@mail.gmail.com>
RÃmi Delmas <remi.delmas@gmail.com> writes:
> My problem is that the -MM option of gcc is not meant to be used with
> header files, and seems to choke on header-only pragmas such as
> "#pragma once". I have been looking at an option to ignore pragmas,
> with no success.
Note that #pragma once is normally not necessary when using gcc. I
don't know if you can remove it, though.
Ian