Andrea Mondelli has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/16828

Change subject: scons: Use the correct env value to create defines.py
......................................................................

scons: Use the correct env value to create defines.py

The method makeDefinesPyFile uses obsolete values of the env array.
An example is USE_SYSTEMC, that is disabled in compile time on specific
conditions, but used (with error) in runtime.

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



diff --git a/src/SConscript b/src/SConscript
index 1d65649..973aa97 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -832,7 +832,9 @@
 """)
     code.write(target[0].abspath)

-defines_info = Value(build_env)
+# Read the updated env
+defines_info = Value([(opt, env[opt]) for opt in export_vars])
+
 # Generate a file with all of the compile options in it
 env.Command('python/m5/defines.py', defines_info,
             MakeAction(makeDefinesPyFile, Transform("DEFINES", 0)))

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

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I5af0b156b75dfb6fbf6ed32e7154832747b3970a
Gerrit-Change-Number: 16828
Gerrit-PatchSet: 1
Gerrit-Owner: Andrea Mondelli <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to