insns.pl: fix unnecessary build reproducibility failure

Instead of sorting the list of flags by number, it sorted it by hash.

Reported-by: <bbhtt@bbhtt.in>
Fixes: https://github.com/netwide-assembler/nasm/issues/220
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin (Intel) 2026-06-11 15:20:12 -07:00
parent 6f830c1c74
commit 5e6a181fec

View file

@ -248,7 +248,7 @@ sub merge_flags($;$) {
clean_flags(\%flags);
my @flagslist = sort { $flag_byname{$a} <=> $flag_byname{$b} }
my @flagslist = sort { $flag_byname{$a}->[0] <=> $flag_byname{$b}->[0] }
grep { !/^(\s*|\!.*)$/ } keys(%$flags);
if ($human) {