aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2014-11-26 11:55:26 +0100
committerLukas Larsson <[email protected]>2014-11-26 11:55:26 +0100
commit9adde956a986fc41354b7581e5cf4c8eec059606 (patch)
tree38c291e145ab103049c99673829a13116a5d03c4
parent647d6a0a435135c82ff76e167882c242301e4186 (diff)
downloadotp-9adde956a986fc41354b7581e5cf4c8eec059606.tar.gz
otp-9adde956a986fc41354b7581e5cf4c8eec059606.tar.bz2
otp-9adde956a986fc41354b7581e5cf4c8eec059606.zip
Sort keys before generating
This has to be done in order to consistently generate the same file so that we do not get rebuilds all the time.
-rwxr-xr-xerts/emulator/utils/make_compiler_flags2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/utils/make_compiler_flags b/erts/emulator/utils/make_compiler_flags
index cebe8cd0c5..ca1bc47113 100755
--- a/erts/emulator/utils/make_compiler_flags
+++ b/erts/emulator/utils/make_compiler_flags
@@ -70,7 +70,7 @@ my($prog) = $prog[$#prog];
print "/* Warning: Do not edit this file.\n";
print " Auto-generated by '$prog'.*/\n";
-foreach(keys %constants) {
+foreach (sort(keys %constants)) {
print "const char* erts_build_flags_$_ = \"$constants{$_}\";\n"
}