# HG changeset patch # User Jaroslav Tulach # Date 1432714734 -7200 # Node ID 12e3d0dfffeb37fe2636612e26bff9ce967217ba # Parent 553445b73d99bbe739e05307999d2b163fb21714 GRAAL-1090: Doug speeds up ./mx.sh build --only com.oracle.truffle.sl from 8s to 4s on my computer. diff -r 553445b73d99 -r 12e3d0dfffeb mxtool/mx.py --- a/mxtool/mx.py Tue May 26 16:19:16 2015 -0700 +++ b/mxtool/mx.py Wed May 27 10:18:54 2015 +0200 @@ -2759,7 +2759,7 @@ # N.B. Limiting to a suite only affects the starting set of projects. Dependencies in other suites will still be compiled sortedProjects = sorted_project_deps(projects, includeAnnotationProcessors=True) - if args.java: + if args.java and jdtJar: ideinit([], refreshOnly=True, buildProcessorJars=False) tasks = {} @@ -2937,7 +2937,7 @@ log('Compiling {0} failed'.format(t.proj.name)) abort('{0} Java compilation tasks failed'.format(len(failed))) - if args.java: + if args.java and not args.only: files = [] for dist in sorted_dists(): if dist not in updatedAnnotationProcessorDists: @@ -4430,6 +4430,8 @@ out.element('arg', {'value' : 'build'}) out.element('arg', {'value' : '--only'}) out.element('arg', {'value' : p.name}) + out.element('arg', {'value' : '--force-javac'}) + out.element('arg', {'value' : '--no-native'}) out.close('exec') out.close('target') out.open('target', {'name' : 'jar', 'depends' : 'compile'})