On Fri, 2007-09-07 at 09:25 +0100, José Matos wrote:
> On Friday 07 September 2007 08:25:30 Darren Freeman wrote:
> > Check out gcc's new precompiled header functionality.
> > http://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html
> >
> > Basically gcc-3.4 and newer allow you to dump the state of the compiler
> > to disc after your headers are compiled, and then load it in place of
> > those headers, saving you most of the compile time.
> 
> Thanks Darren,
>       I use F7 and F8 (rawhide), gcc-4.1.2, to test lyx so this is not a 
> problem. 
> And as Jean-Marc said in the reply to this message that is already the 
> default in autotools.
> 
>       I suspect that something is wrong in the dependency handling since I 
> use a 
> builddir != srcdir. :-(

Don't forget that it only uses the pre-compiled header for the first
#include. To get the benefits you still have to include all the project
includes from one header. Lyx isn't doing this, right?

Have fun,
Darren

Reply via email to