提交 297ed93a 编写于 作者: O Olaf Hering 提交者: Michal Privoznik

rpc: reproducible genprotocol output

If the same source gets built twice ('build same source on different
hosts at different times') the resulting files may differ.
Fix this by sorting the hash keys before usage.
Signed-off-by: NOlaf Hering <olaf@aepfle.de>
上级 86a6cb13
......@@ -104,7 +104,7 @@ while (<RPCGEN>) {
if (keys %uses >= 1) {
my $i = 1;
foreach (keys %uses) {
foreach (sort(keys %uses)) {
$i = $uses{$_};
unshift @function,
(" char **objp_cpp$i = (char **) (void *) &$_;\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册