Commit 43f9dbcb authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃 Committed by richard
Browse files

Bug 41995: Generated headers on Windows are not reproducible

The flags optionally passed as a third parameter to DLL_BLOCKLIST_ENTRY
are stored in a set, so they are not ordered.
Sorting them before outputting them makes the creation of the headers
deterministic.
parent 6f0199ab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -570,7 +570,7 @@ class DllBlocklistEntry(object):

        flags_str = ""

        flags = self.get_flags_list()
        flags = sorted(self.get_flags_list())
        if flags:
            flags_str = ", " + " | ".join(map(self.get_flag_string, flags))