Index: Source/bindings/scripts/generate-bindings.pl |
diff --git a/Source/bindings/scripts/generate-bindings.pl b/Source/bindings/scripts/generate-bindings.pl |
index 4be15c16d8132447f77b7d6415b5ffae8db47f9c..734042932fa952d983f127c66256f1f3f1c521e1 100755 |
--- a/Source/bindings/scripts/generate-bindings.pl |
+++ b/Source/bindings/scripts/generate-bindings.pl |
@@ -97,7 +97,9 @@ if ($supplementalDependencyFile) { |
my ($idlFile, @followingIdlFiles) = split(/\s+/, $line); |
if ($idlFile and basename($idlFile) eq basename($targetIdlFile)) { |
$idlFound = 1; |
- @supplementedIdlFiles = @followingIdlFiles; |
+ # We sort the supplemental IDL files so that the corresponding code is generated |
+ # in a consistent order. This is important for the bindings tests. |
+ @supplementedIdlFiles = sort @followingIdlFiles; |
} |
} |
close FH; |