From 473d3c72c82e8a2decb144b362e1fd6e4e7b764f Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 29 Sep 2021 05:06:56 -0700 Subject: [PATCH] scons: Clone the gem5py_env environment in src/SConscript. This will avoid cross contamination between variants, where the gem5py executable from one variant is used by another variant, potentially crashing SCons on a clean build. Change-Id: I6c1741d431892ff11c2e05a6beb5e87c2b0d67eb Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/51087 Reviewed-by: Bobby R. Bruce Maintainer: Bobby R. Bruce Tested-by: kokoro --- src/SConscript | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SConscript b/src/SConscript index 7ab26d7384..e186022146 100644 --- a/src/SConscript +++ b/src/SConscript @@ -80,6 +80,7 @@ build_tools = Dir('#build_tools') # Build a small helper that runs Python code using the same version of Python # as gem5. This is in an unorthodox location to avoid building it for every # variant. +gem5py_env = gem5py_env.Clone() gem5py = gem5py_env.Program('gem5py', 'python/gem5py.cc')[0] gem5py_env['GEM5PY'] = gem5py # Inject build_tools into PYTHONPATH for when we run gem5py.