anv_icd.py: improve reproducible builds
authorMaxin B. John <maxin.john@intel.com>
Thu, 18 Jan 2018 11:33:37 +0000 (13:33 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 26 Jan 2018 09:37:45 +0000 (01:37 -0800)
Sort the output to ensure build reproducibility

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Fixes: 0ab04ba979b ("anv: Use python to generate ICD json files")
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_icd.py

index 4ed01fa2330245c030e53f491550a67403ba3abb..31bb0687a8f43f15e63ff9384f78f0e1196e5b8f 100644 (file)
@@ -44,4 +44,4 @@ if __name__ == '__main__':
     }
 
     with open(args.out, 'w') as f:
-        json.dump(json_data, f, indent = 4)
+        json.dump(json_data, f, indent = 4, sort_keys=True)