[Omake] Re: RE : Re: preprocessor for computing dependencies

Thomas Nagy tnagyemail-mail at yahoo.fr
Wed Sep 13 10:52:04 PDT 2006


> In that case one needs to instruct the build tool to
> run whatever 
> commands are needed to build the necessary headers
> before scanning, I 
> guess.

In fact, for some projects (Qt), the necessary headers
are built after scanning.

> Besides, what if your generated file depends
> on other .h files? 
> Point being: The "solution" of  outputting
> dependencies on files which 
> aren't known doesn't really address the fundamental
> problem (nor can it 
> from it's limited vantage point) whereas a build
> system _can_.
> 
> (I realize that a general solution to this problem
> is not necessarily 
> easy to achieve, but the task definitely belongs to
> the build tool.)
> 
> > * not everyone uses gcc
> 
> Fair enough, but I suspect most(all?) compilers have
> equivalent options.

You suspect, or you are certain ?

> > * the gcc output is not really easy to parse
> 
> Easy as opposed to creating a standard-compliant
> C/C++ preprocessor?

For guessing dependencies, yes (have a look at the
code).

At least, the day you will realize you need to make a
preprocessor you will have a good start point.

> > * gcc is quite slow (not going to the system
> includes
> > for computing dependencies is enough in 99% of the
> > cases)
> 
> Then gcc -MM is for you. :)

People in the past have told me the same thing (with
smileys too). I still have the code for this, it is
neither pretty (add build dirs and variants to the
party), nor satisfactory.

Regards,
Thomas
http://freehackers.org/~tnagy/waf.html


> -- 
> Bardur Arantsson
> <bardurREMOVE at THISscientician.net>
> 
> Quality care or your autopsy is free.
>                                      Hospital Sign,
> 'The Simpsons'
> 
> _______________________________________________
> Omake mailing list
> Omake at metaprl.org
> https://lists.metaprl.org/mailman/listinfo/omake
> 



	

	
		
___________________________________________________________________________ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com


More information about the Omake mailing list