Unreviewed, fix webkitpy failure after r244085.
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Apr 2019 21:42:32 +0000 (21:42 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Apr 2019 21:42:32 +0000 (21:42 +0000)
Use a list instead of a set for header includes so that the order is
maintained.

* Scripts/webkit/messages.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244095 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/Scripts/webkit/messages.py

index a3806ac..8fcc07e 100644 (file)
@@ -1,3 +1,12 @@
+2019-04-09  Chris Dumez  <cdumez@apple.com>
+
+        Unreviewed, fix webkitpy failure after r244085.
+
+        Use a list instead of a set for header includes so that the order is
+        maintained.
+
+        * Scripts/webkit/messages.py:
+
 2019-04-09  Andy Estes  <aestes@apple.com>
 
         [Apple Pay] Add release logging to PaymentCoordinator
index 103c46e..a885bb0 100644 (file)
@@ -244,15 +244,15 @@ def forward_declarations_and_headers(receiver):
 
     forward_declarations = '\n'.join([forward_declarations_for_namespace(namespace, types) for (namespace, types) in sorted(types_by_namespace.items())])
 
-    header_includes = set()
+    header_includes = []
     for header in sorted(headers):
         if header in header_conditions and not None in header_conditions[header]:
             header_include = '#if %s\n' % ' || '.join(set(header_conditions[header]))
             header_include += '#include %s\n' % header
             header_include += '#endif\n'
-            header_includes.add(header_include)
+            header_includes.append(header_include)
         else:
-            header_includes.add('#include %s\n' % header)
+            header_includes.append('#include %s\n' % header)
 
     return (forward_declarations, header_includes)