comparison mx/commands.py @ 4608:05a33fabcfe6

Added -g option to 'mx gate' to omit the server and client builds (i.e. -g == graal only).
author Doug Simon <doug.simon@oracle.com>
date Fri, 17 Feb 2012 15:01:37 +0100
parents ee87cfe2f8f9
children 5b0a2334437d
comparison
equal deleted inserted replaced
4607:ee87cfe2f8f9 4608:05a33fabcfe6
620 mx.log(time.strftime('gate: %d %b %Y %H:%M:%S: ABORT: ') + self.title + ' [' + str(self.duration) + ']') 620 mx.log(time.strftime('gate: %d %b %Y %H:%M:%S: ABORT: ') + self.title + ' [' + str(self.duration) + ']')
621 mx.abort(codeOrMessage) 621 mx.abort(codeOrMessage)
622 return self 622 return self
623 623
624 parser = ArgumentParser(prog='mx gate'); 624 parser = ArgumentParser(prog='mx gate');
625 parser.add_argument('--omit-native-build', action='store_false', dest='buildNative', help='omit cleaning and building native code') 625 parser.add_argument('-n', '--omit-native-build', action='store_false', dest='buildNative', help='omit cleaning and building native code')
626 parser.add_argument('-g', '--only-build-graalvm', action='store_false', dest='buildNonGraal', help='only build the Graal VM')
626 627
627 args = parser.parse_args(args) 628 args = parser.parse_args(args)
628 629
629 tasks = [] 630 tasks = []
630 total = Task('Gate') 631 total = Task('Gate')
652 t = Task('CleanAndBuildGraalVisualizer') 653 t = Task('CleanAndBuildGraalVisualizer')
653 mx.run(['ant', '-f', join(_graal_home, 'visualizer', 'build.xml'), '-q', 'clean', 'build']) 654 mx.run(['ant', '-f', join(_graal_home, 'visualizer', 'build.xml'), '-q', 'clean', 'build'])
654 tasks.append(t.stop()) 655 tasks.append(t.stop())
655 656
656 # Prevent Graal modifications from breaking the standard builds 657 # Prevent Graal modifications from breaking the standard builds
657 if args.buildNative: 658 if args.buildNative and args.buildNonGraal:
658 t = Task('BuildHotSpotVarieties') 659 t = Task('BuildHotSpotVarieties')
659 buildvms(['--vms', 'client,server', '--builds', 'fastdebug,product']) 660 buildvms(['--vms', 'client,server', '--builds', 'fastdebug,product'])
660 tasks.append(t.stop()) 661 tasks.append(t.stop())
661 662
662 for vmbuild in ['fastdebug', 'product']: 663 for vmbuild in ['fastdebug', 'product']: