This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch for Review: Build all libjava .class files at once
- From: Tom Tromey <tromey at redhat dot com>
- To: gnustuff at thisiscool dot com
- Cc: GCJ Patches <java-patches at gcc dot gnu dot org>
- Date: 06 May 2003 11:58:55 -0600
- Subject: Re: Patch for Review: Build all libjava .class files at once
- References: <1XB8EBRMTQUTTNLHL06FDC7GDVRB683.3eb0e9fd@p733>
- Reply-to: tromey at redhat dot com
>>>>> "Mohan" == Mohan Embar <gnustuff@thisiscool.com> writes:
Mohan> On my PII 450MHz/256MB machine running RH 8.0, this patch cuts
Mohan> the time for this step down to roughly four and a half minutes
Mohan> compared to a pre-patch time of roughly 12.5 minutes.
Nice.
Mohan> +built_java_class_files: build_java_sources_init $(all_java_class_files)
Unfortunately this approach doesn't work when doing a parallel
make -- ordering the dependencies is insufficient.
Try something like:
built_java_class_files:
-@rm -f $(tmp_java_filelist)
@touch $(tmp_java_filelist)
$(MAKE) really_build_class files
really_build_class_files: $(all_java_class_files)
Also:
Mohan> + @if test -s $(tmp_java_filelist); then echo Compiling Java sources....; \
Mohan> + $(JAVAC) $(JCFLAGS) -classpath '' -bootclasspath $(here):$(srcdir) \
Mohan> + -d $(here) @$(tmp_java_filelist); \
Mohan> + fi
I'd rather see the command line here. That makes it a bit easier to
debug when/if gcj crashes...
What does gcj do if the @-file is empty?
Tom