From 9adde956a986fc41354b7581e5cf4c8eec059606 Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Wed, 26 Nov 2014 11:55:26 +0100 Subject: 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. --- erts/emulator/utils/make_compiler_flags | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } -- cgit v1.2.3