Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/51087 )

Change subject: scons: Clone the gem5py_env environment in src/SConscript.
......................................................................

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
---
M src/SConscript
1 file changed, 14 insertions(+), 0 deletions(-)



diff --git a/src/SConscript b/src/SConscript
index 7ab26d7..e186022 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -80,6 +80,7 @@
# 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.

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/51087
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I6c1741d431892ff11c2e05a6beb5e87c2b0d67eb
Gerrit-Change-Number: 51087
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabe.bl...@gmail.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to