Skip to content

Commit 2497e2e

Browse files
committed
Configure: warn about duplicate GENERATE declarations in build.info files
This sort of duplication is permitted, as the end result will be a single item anyway, but we might as well warn to avoid future confusion. Reviewed-by: Tomas Mraz <[email protected]> (Merged from openssl#13824)
1 parent 5e16ac1 commit 2497e2e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Configure

+4-1
Original file line numberDiff line numberDiff line change
@@ -2325,7 +2325,7 @@ EOF
23252325
if ($generate{$gen}) {
23262326
$generator[0] = cleanfile($buildd, $gen, $blddir);
23272327
}
2328-
$check_generate{$ddest}->{$generator[0]} = 1;
2328+
$check_generate{$ddest}->{$generator[0]}++;
23292329

23302330
$unified_info{generate}->{$ddest} = [ @generator ];
23312331
}
@@ -2439,6 +2439,9 @@ EOF
24392439
warn "$_ is GENERATEd by more than one generator ($generators_txt)\n";
24402440
$ambiguous_generation++;
24412441
}
2442+
if ($check_generate{$_}->{$generators[0]} > 1) {
2443+
warn "INFO: $_ has more than one GENERATE declaration (same generator)\n"
2444+
}
24422445
}
24432446
die "There are ambiguous source file generations\n"
24442447
if $ambiguous_generation > 0;

0 commit comments

Comments
 (0)