Index: build/android/gyp/util/build_utils.py |
diff --git a/build/android/gyp/util/build_utils.py b/build/android/gyp/util/build_utils.py |
index 2a53312b85c06724509e62429fac65344815540a..1ab8575df3029c45420cc885d44d4b3de0440b3e 100644 |
--- a/build/android/gyp/util/build_utils.py |
+++ b/build/android/gyp/util/build_utils.py |
@@ -80,7 +80,7 @@ def WriteJson(obj, path, only_if_changed=False): |
with open(path, 'r') as oldfile: |
old_dump = oldfile.read() |
- new_dump = json.dumps(obj) |
+ new_dump = json.dumps(obj, sort_keys=True, indent=2, separators=(',', ': ')) |
if not only_if_changed or old_dump != new_dump: |
with open(path, 'w') as outfile: |