Mercurial > hg > truffle
comparison mx/commands.py @ 5750:30876d0bb92d
In gate command, allways build natives, use '-n' to avoid cleaning them only
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Wed, 04 Jul 2012 13:55:03 +0200 |
parents | dab877fe7c31 |
children | 66ec0bc36a37 |
comparison
equal
deleted
inserted
replaced
5746:17d2c3b72762 | 5750:30876d0bb92d |
---|---|
737 mx.abort(codeOrMessage) | 737 mx.abort(codeOrMessage) |
738 return self | 738 return self |
739 | 739 |
740 parser = ArgumentParser(prog='mx gate'); | 740 parser = ArgumentParser(prog='mx gate'); |
741 parser.add_argument('-j', '--omit-java-clean', action='store_false', dest='cleanJava', help='omit cleaning Java native code') | 741 parser.add_argument('-j', '--omit-java-clean', action='store_false', dest='cleanJava', help='omit cleaning Java native code') |
742 parser.add_argument('-n', '--omit-native-build', action='store_false', dest='buildNative', help='omit cleaning and building native code') | 742 parser.add_argument('-n', '--omit-native-clean', action='store_false', dest='cleanNative', help='omit cleaning and building native code') |
743 parser.add_argument('-g', '--only-build-graalvm', action='store_false', dest='buildNonGraal', help='only build the Graal VM') | 743 parser.add_argument('-g', '--only-build-graalvm', action='store_false', dest='buildNonGraal', help='only build the Graal VM') |
744 parser.add_argument('--jacocout', help='specify the output directory for jacoco report') | 744 parser.add_argument('--jacocout', help='specify the output directory for jacoco report') |
745 | 745 |
746 args = parser.parse_args(args) | 746 args = parser.parse_args(args) |
747 | 747 |
753 total = Task('Gate') | 753 total = Task('Gate') |
754 try: | 754 try: |
755 | 755 |
756 t = Task('Clean') | 756 t = Task('Clean') |
757 cleanArgs = [] | 757 cleanArgs = [] |
758 if not args.buildNative: | 758 if not args.cleanNative: |
759 cleanArgs.append('--no-native') | 759 cleanArgs.append('--no-native') |
760 if not args.cleanJava: | 760 if not args.cleanJava: |
761 cleanArgs.append('--no-java') | 761 cleanArgs.append('--no-java') |
762 clean(cleanArgs) | 762 clean(cleanArgs) |
763 tasks.append(t.stop()) | 763 tasks.append(t.stop()) |
766 build(['--no-native']) | 766 build(['--no-native']) |
767 tasks.append(t.stop()) | 767 tasks.append(t.stop()) |
768 for vmbuild in ['fastdebug', 'product']: | 768 for vmbuild in ['fastdebug', 'product']: |
769 _vmbuild = vmbuild | 769 _vmbuild = vmbuild |
770 | 770 |
771 if args.buildNative: | 771 t = Task('BuildHotSpotGraal:' + vmbuild) |
772 t = Task('BuildHotSpotGraal:' + vmbuild) | 772 buildvms(['--vms', 'graal', '--builds', vmbuild]) |
773 buildvms(['--vms', 'graal', '--builds', vmbuild]) | 773 tasks.append(t.stop()) |
774 tasks.append(t.stop()) | |
775 | 774 |
776 t = Task('BootstrapWithSystemAssertions:' + vmbuild) | 775 t = Task('BootstrapWithSystemAssertions:' + vmbuild) |
777 vm(['-esa', '-version']) | 776 vm(['-esa', '-version']) |
778 tasks.append(t.stop()) | 777 tasks.append(t.stop()) |
779 | 778 |
821 t = Task('CleanAndBuildGraalVisualizer') | 820 t = Task('CleanAndBuildGraalVisualizer') |
822 mx.run(['ant', '-f', join(_graal_home, 'visualizer', 'build.xml'), '-q', 'clean', 'build']) | 821 mx.run(['ant', '-f', join(_graal_home, 'visualizer', 'build.xml'), '-q', 'clean', 'build']) |
823 tasks.append(t.stop()) | 822 tasks.append(t.stop()) |
824 | 823 |
825 # Prevent Graal modifications from breaking the standard builds | 824 # Prevent Graal modifications from breaking the standard builds |
826 if args.buildNative and args.buildNonGraal: | 825 if args.buildNonGraal: |
827 t = Task('BuildHotSpotVarieties') | 826 t = Task('BuildHotSpotVarieties') |
828 buildvms(['--vms', 'client,server', '--builds', 'fastdebug,product']) | 827 buildvms(['--vms', 'client,server', '--builds', 'fastdebug,product']) |
829 tasks.append(t.stop()) | 828 tasks.append(t.stop()) |
830 | 829 |
831 for vmbuild in ['product', 'fastdebug']: | 830 for vmbuild in ['product', 'fastdebug']: |