Mercurial > hg > graal-compiler
changeset 9262:0f4ae7bbe062
fixed bug in handling of -V mx option
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 23 Apr 2013 16:55:29 +0200 |
parents | 4015295cc5f5 |
children | 0ee7c7afdd20 |
files | mxtool/mx.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mxtool/mx.py Tue Apr 23 16:19:52 2013 +0200 +++ b/mxtool/mx.py Tue Apr 23 16:55:29 2013 +0200 @@ -980,11 +980,14 @@ for arg in args: assert isinstance(arg, types.StringTypes), 'argument is not a string: ' + str(arg) + if env is None: + env = os.environ + if _opts.verbose: if _opts.very_verbose: log('Environment variables:') - for key in sorted(os.environ.keys()): - log(' ' + key + '=' + os.environ[key]) + for key in sorted(env.keys()): + log(' ' + key + '=' + env[key]) log(' '.join(args)) if timeout is None and _opts.ptimeout != 0: