Mercurial > hg > graal-jvmci-8
comparison mx/commands.py @ 4577:bc8b58c11768
Added debug build of HotSpot Client to the gate.
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 13 Feb 2012 14:01:49 +0100 |
parents | ccb5369481a2 |
children | b24386206122 |
comparison
equal
deleted
inserted
replaced
4576:8b53e3920a6b | 4577:bc8b58c11768 |
---|---|
340 stdin.write('exit' + newLine) | 340 stdin.write('exit' + newLine) |
341 if logFile: | 341 if logFile: |
342 log.close() | 342 log.close() |
343 return ret | 343 return ret |
344 | 344 |
345 def build(args): | 345 def build(args, vm=None): |
346 """build the VM binary | 346 """build the VM binary |
347 | 347 |
348 The global '--vm' option selects which VM to build. This command also | 348 The global '--vm' option selects which VM to build. This command also |
349 compiles the Graal classes irrespective of what VM is being built. | 349 compiles the Graal classes irrespective of what VM is being built. |
350 The optional last argument specifies what build level is to be used | 350 The optional last argument specifies what build level is to be used |
358 | 358 |
359 builds = opts2.remainder | 359 builds = opts2.remainder |
360 if len(builds) == 0: | 360 if len(builds) == 0: |
361 builds = ['product'] | 361 builds = ['product'] |
362 | 362 |
363 vm = _vm | 363 if vm is None: |
364 vm = _vm | |
365 | |
364 if vm == 'server': | 366 if vm == 'server': |
365 buildSuffix = '' | 367 buildSuffix = '' |
366 elif vm == 'client': | 368 elif vm == 'client': |
367 buildSuffix = '1' | 369 buildSuffix = '1' |
368 else: | 370 else: |
555 tasks.append(t.stop()) | 557 tasks.append(t.stop()) |
556 | 558 |
557 t = Task('CleanAndBuildGraalVisualizer') | 559 t = Task('CleanAndBuildGraalVisualizer') |
558 mx.run(['ant', '-f', join(_graal_home, 'visualizer', 'build.xml'), '-q', 'clean', 'build']) | 560 mx.run(['ant', '-f', join(_graal_home, 'visualizer', 'build.xml'), '-q', 'clean', 'build']) |
559 tasks.append(t.stop()) | 561 tasks.append(t.stop()) |
562 | |
563 tasks.append(t.stop()) | |
564 mx.run(['ant', '-f', join(_graal_home, 'visualizer', 'build.xml'), '-q', 'clean', 'build']) | |
565 tasks.append(t.stop()) | |
566 | |
567 # Prevent Graal modifications from breaking the standard client build | |
568 t = Task('BuildClientDebug') | |
569 build(['--no-java', 'debug'], vm='client') | |
570 tasks.append(t.stop()) | |
571 | |
572 # Prevent Graal modifications from breaking the standard server build | |
573 #t = Task('BuildServerDebug') | |
574 #build(['--no-java', 'debug'], vm='server') | |
575 #tasks.append(t.stop()) | |
560 | 576 |
561 for vmbuild in ['fastdebug', 'product']: | 577 for vmbuild in ['fastdebug', 'product']: |
562 global _vmbuild | 578 global _vmbuild |
563 _vmbuild = vmbuild | 579 _vmbuild = vmbuild |
564 | 580 |