Ciro Santilli has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/29132 )

Change subject: scons: quick test la la la la la
......................................................................

scons: quick test la la la la la

Change-Id: Ieabc268e0ac66dd4469e5586519470b661bee0ec
---
M src/SConscript
1 file changed, 11 insertions(+), 1 deletion(-)



diff --git a/src/SConscript b/src/SConscript
index 134e2a5..e2eed55 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -60,6 +60,14 @@

 Import('*')

+pybind11objs = []
+for path, dirnames, filenames in
+        os.walk(Dir('#/ext/pybind11/include/pybind11').get_abspath()):
+    for filename in filenames:
+        if os.path.splitext(filename)[1] == '.cpp':
+            pybind11objs.append(
+                    base_py_env.Object(os.path.join(path, filename)))
+
 # Children need to see the environment
 Export('env')

@@ -454,6 +462,7 @@
     def declare(self, env, objs=None):
         if objs is None:
             objs = self.srcs_to_objs(env, self.sources)
+        objs.extend(pybind11objs)

         env = env.Clone()
         env['BIN_RPATH_PREFIX'] = os.path.relpath(
@@ -1140,7 +1149,8 @@
 # Build a small helper that marshals the Python code using the same
 # version of Python as gem5. This is in an unorthodox location to
 # avoid building it for every variant.
-py_marshal = base_py_env.Program('marshal', 'python/marshal.cc')[0]
+py_marshal = base_py_env.Program('marshal', ['python/marshal.cc'] +
+        pybind11objs)[0]

 # Embed python files.  All .py files that have been indicated by a
 # PySource() call in a SConscript need to be embedded into the M5

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/29132
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: Ieabc268e0ac66dd4469e5586519470b661bee0ec
Gerrit-Change-Number: 29132
Gerrit-PatchSet: 1
Gerrit-Owner: Ciro Santilli <ciro.santi...@arm.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