From 9281a83d6bbec9bf579bdaae046dc606119dffef Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Tue, 11 Jun 2019 12:00:32 +0200 Subject: [PATCH] Sort another hash iterator to produce stable output. Without this patch, HSAILItems_gen.hpp got variations in the order of BrigAluModifier and BrigExecutableModifier Similar to commit 91669c2fea8d93d4e1b22963b438201ad3115dfa for reproducible builds. --- libHSAIL/generate.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libHSAIL/generate.pl b/libHSAIL/generate.pl index b19d72f..8f8856f 100644 --- a/libHSAIL/generate.pl +++ b/libHSAIL/generate.pl @@ -1376,7 +1376,7 @@ sub makeWrappers { print map { "class $_->{wname};\n" } grep { !$_->{nowrap} } @sortedStructs; print "\n\n"; - for my $tname (keys %$typedefs) { + for my $tname (sort keys %$typedefs) { my $type = $typedefs->{$tname}; my $prop = $type->{'bitmask'};