Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2188)

Unified Diff: build/gn_helpers.py

Issue 1880903002: Switch MB to write the GN args to args.gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_mb_goma
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/mb/mb.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/gn_helpers.py
diff --git a/build/gn_helpers.py b/build/gn_helpers.py
index 6aeddae5fd853c7e58def9254e5a24a289853710..484ae5af54fe033f5a55f6b8087583fe83e01875 100644
--- a/build/gn_helpers.py
+++ b/build/gn_helpers.py
@@ -51,7 +51,7 @@ def ToGNString(value, allow_dicts = True):
if not allow_dicts:
raise GNException("Attempting to recursively print a dictionary.")
result = ""
- for key in value:
+ for key in sorted(value):
Dirk Pranke 2016/04/12 18:06:49 this makes things a little more deterministic and
if not isinstance(key, str):
raise GNException("Dictionary key is not a string.")
result += "%s = %s\n" % (key, ToGNString(value[key], False))
« no previous file with comments | « no previous file | tools/mb/mb.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698