diff 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
line wrap: on
line diff
--- a/pytools/commands.py	Wed Nov 23 14:52:52 2011 +0100
+++ b/pytools/commands.py	Wed Nov 23 18:11:28 2011 +0100
@@ -38,6 +38,9 @@
 def bootstrap(env, args):
     return env.run_vm(args + ['-version'])
 
+def safeadd(env, args):
+    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'])
+    
 def avrora(env, args):
     return env.run_dacapo(args + ['Harness', '--preserve', '-n', '20', 'avrora'])
 
@@ -166,6 +169,7 @@
 # Extensions should update this table directly
 table = {
     'avrora': [avrora, ''],
+    'safeadd': [safeadd, ''],
     'batik': [batik, ''],
     'bootstrap': [bootstrap, ''],
     'clean': [clean, ''],