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

Unified Diff: tools/build.py

Issue 2400493002: Select GN build with an environment variable (Closed)
Patch Set: Created 4 years, 2 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 | « DEPS ('k') | tools/generate_buildfiles.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/build.py
diff --git a/tools/build.py b/tools/build.py
index 6c408e3b14b7425b3af472bd44591f6bbe0914fb..4f5d2e1606dcc26ca2573f0a54c8a5d4e9cee4da 100755
--- a/tools/build.py
+++ b/tools/build.py
@@ -44,6 +44,13 @@ the Dart repo root,
unless you really intend to use a non-default Makefile.""" % DART_ROOT
+DART_USE_GN = "DART_USE_GN"
+
+
+def use_gn():
+ return DART_USE_GN in os.environ
+
+
def BuildOptions():
result = optparse.OptionParser(usage=usage)
result.add_option("-m", "--mode",
@@ -79,7 +86,7 @@ def BuildOptions():
default=vs_executable)
result.add_option("--gn",
help='Build with GN/Ninja',
- default=False,
+ default=use_gn(),
action='store_true')
return result
« no previous file with comments | « DEPS ('k') | tools/generate_buildfiles.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698