# HG changeset patch # User Gilles Duboscq # Date 1365439218 -7200 # Node ID 822163edb8bf0216c6171abf736101f04054f67e # Parent 87aebe2843a5dcc68d7d7456a335c268e8248fef Make a copy of the environ in mx clean to avoid forcing things like HOTSPOT_BUILD_JOBS=16 for other commands diff -r 87aebe2843a5 -r 822163edb8bf mx/commands.py --- a/mx/commands.py Mon Apr 08 15:13:05 2013 +0200 +++ b/mx/commands.py Mon Apr 08 18:40:18 2013 +0200 @@ -66,8 +66,9 @@ """clean the GraalVM source tree""" opts = mx.clean(args, parser=ArgumentParser(prog='mx clean')) if opts.native: - os.environ.update(ARCH_DATA_MODEL='64', LANG='C', HOTSPOT_BUILD_JOBS='16') - mx.run([mx.gmake_cmd(), 'clean'], cwd=join(_graal_home, 'make')) + env = os.environ.copy() + env.update(ARCH_DATA_MODEL='64', LANG='C', HOTSPOT_BUILD_JOBS='16') + mx.run([mx.gmake_cmd(), 'clean'], cwd=join(_graal_home, 'make'), env=env) jdks = join(_graal_home, 'jdk' + str(mx.java().version)) if exists(jdks): shutil.rmtree(jdks)