Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: afb on November 27, 2006, 12:12:45 pm

Title: pre-compiled headers location
Post by: afb on November 27, 2006, 12:12:45 pm
I've done a Makefile.am change to move the generated pre-compiled headers (.gch files) from the "src" directory to the build directory instead, since it is causing me problems when doing several builds to have them in the same source tree. (e.g. release/debug builds, x86/ppc builds, etc. etc.) I think the sources should be treated as read-only ?

Should work fine (have used it all along for the universal build), just wondered if anyone had objections ? i.e. it replaces $(srcdir)/sdk.h.gch with just sdk.h.gch, same for lib_finder and wxSmith. Also added an explicit -c, since some versions of gcc get confused otherwise (when cross-compiling)
Title: Re: pre-compiled headers location
Post by: killerbot on November 27, 2006, 01:00:56 pm
also check for the cbp files !!!
Title: Re: pre-compiled headers location
Post by: afb on November 27, 2006, 01:16:48 pm
also check for the cbp files !!!
Do the cbp projects use the Makefiles too ? Will make sure to check that then.
Title: Re: pre-compiled headers location
Post by: mandrav on November 27, 2006, 01:21:52 pm
also check for the cbp files !!!
Do the cbp projects use the Makefiles too ? Will make sure to check that then.

No, they don't.
Title: Re: pre-compiled headers location
Post by: killerbot on November 27, 2006, 03:09:52 pm
cbp files also specify where to put pch's , I think
Title: Re: pre-compiled headers location
Post by: afb on November 27, 2006, 03:32:00 pm
cbp files also specify where to put pch's , I think

Yes, and that is fine... They can put them where they want :-)