comparison mx/commands.py @ 4247:3f6c6e61614e

Changed 'mx build' such that all Java sources for a project are compiled together instead of by source directory.
author Doug Simon <doug.simon@oracle.com>
date Mon, 09 Jan 2012 14:12:53 +0100
parents a69889e5a8a5
children 67e88b7624d5
comparison
equal deleted inserted replaced
4246:b019b2ebe03e 4247:3f6c6e61614e
38 _winSDK = 'C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\' 38 _winSDK = 'C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\'
39 _mksHome = 'C:\\cygwin\\bin' 39 _mksHome = 'C:\\cygwin\\bin'
40 40
41 def clean(args): 41 def clean(args):
42 """cleans the GraalVM source tree""" 42 """cleans the GraalVM source tree"""
43 opts = mx.clean(args) 43 opts = mx.clean(args, parser=ArgumentParser(prog='mx clean'))
44 if opts.native: 44 if opts.native:
45 os.environ.update(ARCH_DATA_MODEL='64', LANG='C', HOTSPOT_BUILD_JOBS='16') 45 os.environ.update(ARCH_DATA_MODEL='64', LANG='C', HOTSPOT_BUILD_JOBS='16')
46 mx.run([mx.gmake_cmd(), 'clean'], cwd=join(_graal_home, 'make')) 46 mx.run([mx.gmake_cmd(), 'clean'], cwd=join(_graal_home, 'make'))
47 47
48 def copyrightcheck(args): 48 def copyrightcheck(args):
583 for test in sanitycheck.getDacapos(level=sanitycheck.SanityCheckLevel.Gate, gateBuildLevel=vmbuild): 583 for test in sanitycheck.getDacapos(level=sanitycheck.SanityCheckLevel.Gate, gateBuildLevel=vmbuild):
584 t = Task(str(test) + ':' + vmbuild) 584 t = Task(str(test) + ':' + vmbuild)
585 if not test.test('-graal'): 585 if not test.test('-graal'):
586 t.abort(test.group + ' ' + test.name + ' Failed') 586 t.abort(test.group + ' ' + test.name + ' Failed')
587 t.stop() 587 t.stop()
588 except KeyboardInterrupt:
589 total.abort(1)
590
588 except Exception as e: 591 except Exception as e:
592 import traceback
593 traceback.print_exc()
589 total.abort(str(e)) 594 total.abort(str(e))
590 595
591 total.stop() 596 total.stop()
592 597
593 def bench(args): 598 def bench(args):