Peter Simons | 24 Dec 2003 17:05
Picon
Gravatar

Re: :conf should run in $BDIR

Bram Moolenaar writes:

 >> :chdir $BDIR
 >> :conf header {required} boost/spirit.hpp {language = C++}
 >> :chdir -

 > Well, a configure check should not leave temp files
 > behind in any case.

I agree! 

But that will be _very_ hard to accomplish. The *.rpo files
generated by the C++ compiler are a good example. GCC will
generate them, when the '-frepo' flag is given in CXXFLAGS.
Other compilers have similar mechanisms, all of which are
triggered by different flags (and leave different file names
behind). Personally, I wouldn't even try to catch all those
cases; it's a lost cause to begin with.

Besides, leaving result files behind allows for checking
whether a test has to be (re-)run or not, so it's not
necessarily a bad idea, IMHO. It's just that those files
should be in $BDIR, not in the source directory.

Peter

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click

Gmane