Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/48138 )
Change subject: scons: Stop caching the first version of object files.
......................................................................
scons: Stop caching the first version of object files.
Don't cache the first version requested of object files to use for
subsequent requests. This was originally put in place to avoid an error
when object files could be built with trivially different command lines,
ie command lines which are technically different but not in a
necessarily meaningful way, or less seriously a warning when the command
lines were the same.
The warning was disabled in an earlier change, and the error was avoided
by using a different object file suffix when building unit tests.
This helps avoid bugs if the object files actually *would* turn out to
be different in a meaningful way based on the flags used, and simplifies
the build.
Change-Id: I6b90e6e36b13adb73e587bb8fc533984f764d95a
---
M src/SConscript
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/src/SConscript b/src/SConscript
index 358f0b8..0048288 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -256,22 +256,16 @@
base.all.append(self)
def static(self, env):
- key = (self.tnode, env['OBJSUFFIX'])
if self.append:
env = env.Clone()
env.Append(**self.append)
- if not key in self.static_objs:
- self.static_objs[key] = env.StaticObject(self.tnode)
- return self.static_objs[key]
+ return env.StaticObject(self.tnode)
def shared(self, env):
- key = (self.tnode, env['OBJSUFFIX'])
if self.append:
env = env.Clone()
env.Append(**self.append)
- if not key in self.shared_objs:
- self.shared_objs[key] = env.SharedObject(self.tnode)
- return self.shared_objs[key]
+ return env.SharedObject(self.tnode)
def bytesToCppArray(code, symbol, data):
'''
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/48138
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: I6b90e6e36b13adb73e587bb8fc533984f764d95a
Gerrit-Change-Number: 48138
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s