This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Can I make use of precompiled header with -include?
- From: "Zuxy Meng" <zuxy dot meng at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 6 Sep 2010 18:05:13 +0800
- Subject: Re: Can I make use of precompiled header with -include?
- References: <i62dtj$dc$1@dough.gmane.org>
- Reply-to: "Zuxy Meng" <zuxy dot meng at gmail dot com>
"Zuxy Meng" <zuxy.meng@gmail.com> ååææ
i62dtj$dc$1@dough.gmane.org">news:i62dtj$dc$1@dough.gmane.org...
Hi,
We have a big project that might benefit from precompiled headers but we
don't want to append tens of thousands of .c files with #include
"master.h". Can we simply add -include "master.h" to CPPFLAGS during
building? In this way, is "master.h" the 1st one to be included for any .c
file? Will gcc make use of master.gch if master.h is given in command
line?
Thanks!
Sorry, wrong list. Pls ignore.
--
Zuxy