Mercurial > hg > truffle
comparison mx/commands.py @ 5094:d3f547b08304
added mechanism for disabling automatic native builds from the IDE (set IDE_BUILD_TARGET="" in mx/env)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 16 Mar 2012 20:23:29 +0100 |
parents | 0a1e5b876667 |
children | 276e14614531 |
comparison
equal
deleted
inserted
replaced
5093:ba5e8ba07b5c | 5094:d3f547b08304 |
---|---|
412 else: | 412 else: |
413 assert vm == 'graal', vm | 413 assert vm == 'graal', vm |
414 buildSuffix = 'graal' | 414 buildSuffix = 'graal' |
415 | 415 |
416 for build in builds: | 416 for build in builds: |
417 if build == 'ide-build-target': | |
418 build = os.environ.get('IDE_BUILD_TARGET', 'product') | |
419 if len(build) == 0: | |
420 mx.log('[skipping build from IDE as IDE_BUILD_TARGET environment variable is ""]') | |
421 continue | |
422 | |
417 jdk = _jdk(build, create=True) | 423 jdk = _jdk(build, create=True) |
418 | 424 |
419 vmDir = join(_vmLibDirInJdk(jdk), vm) | 425 vmDir = join(_vmLibDirInJdk(jdk), vm) |
420 if not exists(vmDir): | 426 if not exists(vmDir): |
421 mx.log('Creating VM directory in JDK7: ' + vmDir) | 427 mx.log('Creating VM directory in JDK7: ' + vmDir) |