summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2014-12-02 06:08:22 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2014-12-02 06:08:22 -0500
commit966c3f4bc5581347a411c25db1440afb97f12dab (patch)
tree72e14bcb462403383f584a1b10cd03f4c8cb5a84 /SConstruct
parent5d22250845f6160bb0529ab510918f56a5c30f94 (diff)
downloadgem5-966c3f4bc5581347a411c25db1440afb97f12dab.tar.xz
scons: Ensure dictionary iteration is sorted by key
This patch adds sorting based on the SimObject name or parameter name for all situations where we iterate over dictionaries. This should ensure a deterministic and consistent order across the host systems and hopefully avoid regression results differing across python versions.
Diffstat (limited to 'SConstruct')
-rwxr-xr-xSConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 8fb649143..c811598e3 100755
--- a/SConstruct
+++ b/SConstruct
@@ -216,7 +216,7 @@ use_prefixes = [
]
use_env = {}
-for key,val in os.environ.iteritems():
+for key,val in sorted(os.environ.iteritems()):
if key in use_vars or \
any([key.startswith(prefix) for prefix in use_prefixes]):
use_env[key] = val