Re: RFC: Automatically using pre compiled headers

Stefan Fiedler <[email protected]>
Newsgroups gmane.linux.distributions.rock.devel
Message-ID <[email protected]>
Am Montag 19 Dezember 2005 13:31 schrieb Clifford Wolf:
> Hi,
>
> this is a proof-of-concept. I'm thinking of using this for building stuff
> such as kde packages, mozilla and other massive c++ template users. please
> send comments and ideas.
>
> 	http://www.clifford.at/priv/autopch.txt
>
> yours,
>  - clifford

Hi,

I gave this script a try in my latest build and have two topics to comment on:
1) C++ files usually have a filename extension of .cpp, .cxx or .cc. autopch 
only checks for .cpp files, but this could be changed easily.
2) egrep greps .cpp files in the current directory. But often g++ is called to 
compile files in another directory e.g. 'g++ -c subdir/cppfile.cpp'. So 
autopch should use a 'cppdir="`dirname $cppfile`"' in which it creates 
autopch.h etc.

With best regards,
	Stefan Fiedler
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.