summaryrefslogtreecommitdiff
path: root/erts/emulator
diff options
context:
space:
mode:
authorJérôme de Bretagne <jerome.debretagne@gmail.com>2022-01-06 13:42:02 +0100
committerJérôme de Bretagne <jerome.debretagne@gmail.com>2022-01-06 13:42:02 +0100
commit169cbc329139a22e1e1b592139cf468838f9011f (patch)
tree420ff11a24d86e91eeea31ea6f4b7ede65be2033 /erts/emulator
parent700d1892140e5a6dbcd9b712143e5177146a994d (diff)
downloaderlang-169cbc329139a22e1e1b592139cf468838f9011f.tar.gz
erts: Generate beamasm_protos.h deterministically
Sort the generated code to ensure reproducible JIT builds.
Diffstat (limited to 'erts/emulator')
-rwxr-xr-xerts/emulator/utils/beam_makeops3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/utils/beam_makeops b/erts/emulator/utils/beam_makeops
index 0bfce0f19b..986db27954 100755
--- a/erts/emulator/utils/beam_makeops
+++ b/erts/emulator/utils/beam_makeops
@@ -713,7 +713,8 @@ sub emulator_output {
open(STDOUT, ">$name") || die "Failed to open $name for writing: $!\n";
comment('C');
- foreach $key (keys %specific_op) {
+ # Sort the generated code to create beamasm_protos.h deterministically
+ foreach $key (sort keys %specific_op) {
foreach (@{$specific_op{$key}}) {
my($name, $hotness, $varargs, @args) = @$_;