Index: build/android/gyp/write_ordered_libraries.py |
diff --git a/build/android/gyp/write_ordered_libraries.py b/build/android/gyp/write_ordered_libraries.py |
index 338090f0554038a14ba72e76b853a355d2d50011..dfa7d20c882ffcfb6c8ba3e5e3ded077930efeea 100755 |
--- a/build/android/gyp/write_ordered_libraries.py |
+++ b/build/android/gyp/write_ordered_libraries.py |
@@ -107,8 +107,7 @@ def main(argv): |
libraries = GetSortedTransitiveDependencies(libraries) |
- with open(_options.output, 'w') as outfile: |
- json.dump(libraries, outfile) |
+ build_utils.WriteJson(libraries, _options.output, only_if_changed=True) |
if _options.stamp: |
build_utils.Touch(_options.stamp) |