diff options
author | Jérôme de Bretagne <jerome.debretagne@gmail.com> | 2022-01-06 13:42:02 +0100 |
---|---|---|
committer | Jérôme de Bretagne <jerome.debretagne@gmail.com> | 2022-01-06 13:42:02 +0100 |
commit | 169cbc329139a22e1e1b592139cf468838f9011f (patch) | |
tree | 420ff11a24d86e91eeea31ea6f4b7ede65be2033 /erts/emulator | |
parent | 700d1892140e5a6dbcd9b712143e5177146a994d (diff) | |
download | erlang-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-x | erts/emulator/utils/beam_makeops | 3 |
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) = @$_; |