changeset 8900:822163edb8bf

Make a copy of the environ in mx clean to avoid forcing things like HOTSPOT_BUILD_JOBS=16 for other commands
author Gilles Duboscq <duboscq@ssw.jku.at>
date Mon, 08 Apr 2013 18:40:18 +0200
parents 87aebe2843a5
children 8ddaac81cb21
files mx/commands.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)