Mercurial > hg > truffle
comparison pytools/commands.py @ 3691:b054dd61bfe1
Made gl script able to import and use the mx script.
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 23 Nov 2011 18:11:28 +0100 |
parents | 61f10abeb25a |
children | 4a76e44544d9 |
comparison
equal
deleted
inserted
replaced
3690:f8d7ab42c479 | 3691:b054dd61bfe1 |
---|---|
36 env.run([env.gmake_cmd(), 'clean'], cwd=join(env.graal_home, 'make')) | 36 env.run([env.gmake_cmd(), 'clean'], cwd=join(env.graal_home, 'make')) |
37 | 37 |
38 def bootstrap(env, args): | 38 def bootstrap(env, args): |
39 return env.run_vm(args + ['-version']) | 39 return env.run_vm(args + ['-version']) |
40 | 40 |
41 def safeadd(env, args): | |
42 return env.run_vm(args + ['-cp', env.mx().pdb().classpath('com.oracle.max.graal.examples.safeadd'), '-Xcomp', '-G:+PrintCompilation', '-G:+Extend', '-G:-Inline', '-XX:CompileOnly=Main', 'com.oracle.max.graal.examples.safeadd.Main']) | |
43 | |
41 def avrora(env, args): | 44 def avrora(env, args): |
42 return env.run_dacapo(args + ['Harness', '--preserve', '-n', '20', 'avrora']) | 45 return env.run_dacapo(args + ['Harness', '--preserve', '-n', '20', 'avrora']) |
43 | 46 |
44 def batik(env, args): | 47 def batik(env, args): |
45 return env.run_dacapo(args + ['Harness', '--preserve', '-n', '20', 'batik']) | 48 return env.run_dacapo(args + ['Harness', '--preserve', '-n', '20', 'batik']) |
164 # If any of the format args are instances of Callable, then they are called with an 'env' are before being | 167 # If any of the format args are instances of Callable, then they are called with an 'env' are before being |
165 # used in the call to str.format(). | 168 # used in the call to str.format(). |
166 # Extensions should update this table directly | 169 # Extensions should update this table directly |
167 table = { | 170 table = { |
168 'avrora': [avrora, ''], | 171 'avrora': [avrora, ''], |
172 'safeadd': [safeadd, ''], | |
169 'batik': [batik, ''], | 173 'batik': [batik, ''], |
170 'bootstrap': [bootstrap, ''], | 174 'bootstrap': [bootstrap, ''], |
171 'clean': [clean, ''], | 175 'clean': [clean, ''], |
172 'fop': [fop, ''], | 176 'fop': [fop, ''], |
173 'h2': [h2, ''], | 177 'h2': [h2, ''], |