gcc+gcj build-times?

Andreas Tobler toa@pop.agri.ch
Wed Feb 22 22:21:00 GMT 2006


Bryce McKinlay wrote:
> Andreas Tobler wrote:
>> But, I do still not understand why we do this step again and again. 
>> Means, the first time is ok :) but when I do a (g)make check, the 
>> compile_classpath is executed again and the target compile-classes is 
>> built again. Although I didn't change anything.
>> The same happens if I do an (g)make install or another (g)make after 
>> changing a non dependant file. This is regardless of the os I try, it 
>> happens on linux, darwin, solaris or as mentioned on freebsd. Freebsd 
>> shows as most annoying since it is develwork in progress and it is the 
>> slowest machine.
>>
>> I'll need to sit down and debug a bit ....
> 
> Yes, I've also found it be annoying that gen-classlist.sh is run every 
> time "make" is run. It would be great to find a way to fix it, as it 
> would save a lot of time when doing incremental rebuilds.

hm, hm!! is that really so easy???

Index: classpath/lib/Makefile.am
===================================================================
--- classpath/lib/Makefile.am   (revision 111359)
+++ classpath/lib/Makefile.am   (working copy)
@@ -131,6 +131,7 @@
           GCJ='$(GCJ)' \
           compile_classpath='$(top_builddir):$(compile_classpath)' \
           top_srcdir=$(top_srcdir)
+         touch compile-classes
  else
  compile-classes: classes $(JAVA_SRCS) Makefile
         $(JAVAC)


Andreas



More information about the Java mailing list