comparison mx/mx_graal.py @ 21488:6420ac0cbe3c

Add Makefile generator for building graal without mx
author Stefan Anzinger <stefan.anzinger@oracle.com>
date Tue, 26 May 2015 14:46:32 +0200
parents 2fe8729dd813
children 28cbfacd0518 ca14581fadc4 fc376e0b80ba
comparison
equal deleted inserted replaced
21487:6b59a0656841 21488:6420ac0cbe3c
35 import xml.dom.minidom 35 import xml.dom.minidom
36 import sanitycheck 36 import sanitycheck
37 import itertools 37 import itertools
38 import json, textwrap 38 import json, textwrap
39 import fnmatch 39 import fnmatch
40 import mx_graal_makefile
40 41
41 # This works because when mx loads this file, it makes sure __file__ gets an absolute path 42 # This works because when mx loads this file, it makes sure __file__ gets an absolute path
42 _graal_home = dirname(dirname(__file__)) 43 _graal_home = dirname(dirname(__file__))
43 44
44 """ Used to distinguish an exported GraalVM (see 'mx export'). """ 45 """ Used to distinguish an exported GraalVM (see 'mx export'). """
2654 'vmfg': [vmfg, '[-options] class [args...]'], 2655 'vmfg': [vmfg, '[-options] class [args...]'],
2655 'deoptalot' : [deoptalot, '[n]'], 2656 'deoptalot' : [deoptalot, '[n]'],
2656 'longtests' : [longtests, ''], 2657 'longtests' : [longtests, ''],
2657 'sl' : [sl, '[SL args|@VM options]'], 2658 'sl' : [sl, '[SL args|@VM options]'],
2658 'jol' : [jol, ''], 2659 'jol' : [jol, ''],
2660 'makefile' : [mx_graal_makefile.build_makefile, 'build makefiles for JDK build'],
2659 } 2661 }
2660 2662
2661 mx.add_argument('--jacoco', help='instruments com.oracle.* classes using JaCoCo', default='off', choices=['off', 'on', 'append']) 2663 mx.add_argument('--jacoco', help='instruments com.oracle.* classes using JaCoCo', default='off', choices=['off', 'on', 'append'])
2662 mx.add_argument('--vmcwd', dest='vm_cwd', help='current directory will be changed to <path> before the VM is executed', default=None, metavar='<path>') 2664 mx.add_argument('--vmcwd', dest='vm_cwd', help='current directory will be changed to <path> before the VM is executed', default=None, metavar='<path>')
2663 mx.add_argument('--installed-jdks', help='the base directory in which the JDKs cloned from $JAVA_HOME exist. ' + 2665 mx.add_argument('--installed-jdks', help='the base directory in which the JDKs cloned from $JAVA_HOME exist. ' +