On Tue, Sep 07, 1999 at 05:38:03PM +0200, Roman Hodek wrote: > You forgot the case of recompilations: If default is with -g + strip > (as policy currently recommends), a lot of time is wasted on the > auto-builder machines.
I think something like the following would work for auto-builder machines: #!/usr/bin/perl # cc cover which removes -g option for ($i=$j=0; $i<=$#ARGV; $i++, $j++) { if ($ARGV[$j] eq '-g') { $i--; } else { $ARGV[$i]= $ARGV[$j]; } } while ($i < $j) { pop @ARGV; $j--; } exec "/usr/bin/gcc", @ARGV; [I volunteer to rewrite this in C if anyone cares to use it and doesn't want to deal with the overhead of perl.] -- Raul