Mesa (master): anv_icd.py: improve reproducible builds

Jason Ekstrand jekstrand at kemper.freedesktop.org
Fri Jan 26 09:37:59 UTC 2018


Module: Mesa
Branch: master
Commit: 8116b9170bc36bb15512f97a7680ad97bddd56a8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8116b9170bc36bb15512f97a7680ad97bddd56a8

Author: Maxin B. John <maxin.john at intel.com>
Date:   Thu Jan 18 13:33:37 2018 +0200

anv_icd.py: improve reproducible builds

Sort the output to ensure build reproducibility

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

---

 src/intel/vulkan/anv_icd.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_icd.py b/src/intel/vulkan/anv_icd.py
index 4ed01fa233..31bb0687a8 100644
--- a/src/intel/vulkan/anv_icd.py
+++ b/src/intel/vulkan/anv_icd.py
@@ -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)




More information about the mesa-commit mailing list