Mercurial > hg > graal-jvmci-8
comparison mx/mx_graal.py @ 16031:cd2209d3af46
mx: show the environment variables defined and make command line issued when doing a HotSpot build
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 05 Jun 2014 11:08:13 +0200 |
parents | 3f350b0d93c9 |
children | d8343c347dc0 |
comparison
equal
deleted
inserted
replaced
16030:bddb3eb57e90 | 16031:cd2209d3af46 |
---|---|
800 | 800 |
801 # Clear these 2 variables as having them set can cause very confusing build problems | 801 # Clear these 2 variables as having them set can cause very confusing build problems |
802 env.pop('LD_LIBRARY_PATH', None) | 802 env.pop('LD_LIBRARY_PATH', None) |
803 env.pop('CLASSPATH', None) | 803 env.pop('CLASSPATH', None) |
804 | 804 |
805 if mx._opts.verbose: | 805 # Issue an env prefix that can be used to run the make on the command line |
806 # Issue an env prefix that can be used to run the make on the command line | 806 if not mx._opts.verbose: |
807 envPrefix = ' '.join([key + '=' + env[key] for key in env.iterkeys() if not os.environ.has_key(key) or env[key] != os.environ[key]]) | 807 mx.log('--------------- make command line ----------------------') |
808 if len(envPrefix): | 808 |
809 mx.log('env ' + envPrefix + ' \\') | 809 envPrefix = ' '.join([key + '=' + env[key] for key in env.iterkeys() if not os.environ.has_key(key) or env[key] != os.environ[key]]) |
810 if len(envPrefix): | |
811 mx.log('env ' + envPrefix + ' \\') | |
810 | 812 |
811 runCmd.append(build + buildSuffix) | 813 runCmd.append(build + buildSuffix) |
814 | |
815 if not mx._opts.verbose: | |
816 mx.log(' '.join(runCmd)) | |
817 mx.log('--------------------------------------------------------') | |
812 mx.run(runCmd, err=filterXusage, env=env) | 818 mx.run(runCmd, err=filterXusage, env=env) |
813 | 819 |
814 jvmCfg = _vmCfgInJdk(jdk) | 820 jvmCfg = _vmCfgInJdk(jdk) |
815 if not exists(jvmCfg): | 821 if not exists(jvmCfg): |
816 mx.abort(jvmCfg + ' does not exist') | 822 mx.abort(jvmCfg + ' does not exist') |