Mercurial > hg > graal-compiler
comparison mxtool/mx.py @ 21503:12e3d0dfffeb
GRAAL-1090: Doug speeds up ./mx.sh build --only com.oracle.truffle.sl from 8s to 4s on my computer.
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Wed, 27 May 2015 10:18:54 +0200 |
parents | c190ed6b84bf |
children | 28cbfacd0518 |
comparison
equal
deleted
inserted
replaced
21502:553445b73d99 | 21503:12e3d0dfffeb |
---|---|
2757 | 2757 |
2758 projects = _projects_opt_limit_to_suites(projects_from_names(projectNames)) | 2758 projects = _projects_opt_limit_to_suites(projects_from_names(projectNames)) |
2759 # N.B. Limiting to a suite only affects the starting set of projects. Dependencies in other suites will still be compiled | 2759 # N.B. Limiting to a suite only affects the starting set of projects. Dependencies in other suites will still be compiled |
2760 sortedProjects = sorted_project_deps(projects, includeAnnotationProcessors=True) | 2760 sortedProjects = sorted_project_deps(projects, includeAnnotationProcessors=True) |
2761 | 2761 |
2762 if args.java: | 2762 if args.java and jdtJar: |
2763 ideinit([], refreshOnly=True, buildProcessorJars=False) | 2763 ideinit([], refreshOnly=True, buildProcessorJars=False) |
2764 | 2764 |
2765 tasks = {} | 2765 tasks = {} |
2766 updatedAnnotationProcessorDists = set() | 2766 updatedAnnotationProcessorDists = set() |
2767 for p in sortedProjects: | 2767 for p in sortedProjects: |
2935 if len(failed): | 2935 if len(failed): |
2936 for t in failed: | 2936 for t in failed: |
2937 log('Compiling {0} failed'.format(t.proj.name)) | 2937 log('Compiling {0} failed'.format(t.proj.name)) |
2938 abort('{0} Java compilation tasks failed'.format(len(failed))) | 2938 abort('{0} Java compilation tasks failed'.format(len(failed))) |
2939 | 2939 |
2940 if args.java: | 2940 if args.java and not args.only: |
2941 files = [] | 2941 files = [] |
2942 for dist in sorted_dists(): | 2942 for dist in sorted_dists(): |
2943 if dist not in updatedAnnotationProcessorDists: | 2943 if dist not in updatedAnnotationProcessorDists: |
2944 archive(['@' + dist.name]) | 2944 archive(['@' + dist.name]) |
2945 if args.check_distributions and not dist.isProcessorDistribution: | 2945 if args.check_distributions and not dist.isProcessorDistribution: |
4428 out.element('env', {'key' : 'JAVA_HOME', 'value' : jdk.jdk}) | 4428 out.element('env', {'key' : 'JAVA_HOME', 'value' : jdk.jdk}) |
4429 out.element('arg', {'value' : os.path.abspath(__file__)}) | 4429 out.element('arg', {'value' : os.path.abspath(__file__)}) |
4430 out.element('arg', {'value' : 'build'}) | 4430 out.element('arg', {'value' : 'build'}) |
4431 out.element('arg', {'value' : '--only'}) | 4431 out.element('arg', {'value' : '--only'}) |
4432 out.element('arg', {'value' : p.name}) | 4432 out.element('arg', {'value' : p.name}) |
4433 out.element('arg', {'value' : '--force-javac'}) | |
4434 out.element('arg', {'value' : '--no-native'}) | |
4433 out.close('exec') | 4435 out.close('exec') |
4434 out.close('target') | 4436 out.close('target') |
4435 out.open('target', {'name' : 'jar', 'depends' : 'compile'}) | 4437 out.open('target', {'name' : 'jar', 'depends' : 'compile'}) |
4436 out.close('target') | 4438 out.close('target') |
4437 out.close('project') | 4439 out.close('project') |