On Wednesday 10 December 2008 21:16, Cathey, Jim wrote:
> >The big advantage of if (FOO) instead of #if FOO is that you always
> >get to compile test all configurations (even if the code it later
> >eliminated by the compiled).
> >
> >That's a pretty big deal as the number of configuration settings go
> >up.
> 
> I can see how this would be.  I wonder if an appropriate solution
> would be to have, as part of the makefile system and associated
> with a usage convention, a manifold test target wherein the #if's
> were sed-ed into a run-time if() for a test (but thrown away)
> compilation?  Something like:
> 
> #.*if (.*) -> if (&1) {
> $.*else    -> } else {
> #.*endif   -> }

scripts/randomtest can be used to test random configs.
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to