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

Unified Diff: tools/gn/switches.cc

Issue 1978693002: GN: Allow setting the path to Python (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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 | « tools/gn/switches.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/switches.cc
diff --git a/tools/gn/switches.cc b/tools/gn/switches.cc
index 48b191ebba4a9985ad049d691d389a3144944e43..8884634f90635375b2ab3540be7ffadd18ce7f95 100644
--- a/tools/gn/switches.cc
+++ b/tools/gn/switches.cc
@@ -103,6 +103,17 @@ const char kNoColor_HelpShort[] =
"--nocolor: Force non-colored output.";
const char kNoColor_Help[] = COLOR_HELP_LONG;
+const char kScriptExecutable[] = "script-executable";
+const char kScriptExecutable_HelpShort[] =
+ "--script-executable: Set the executable used to execute scripts.";
+const char kScriptExecutable_Help[] =
+ "--script-executable: Set the executable used to execute scripts.\n"
+ "\n"
+ " By default GN searches the PATH for Python to execute scripts in\n"
+ " action targets and exec_script calls. This flag allows the\n"
+ " specification of a specific Python executable or potentially\n"
+ " a different language interpreter.\n";
+
const char kQuiet[] = "q";
const char kQuiet_HelpShort[] =
"-q: Quiet mode. Don't print output on success.";
@@ -254,6 +265,7 @@ const SwitchInfoMap& GetSwitches() {
INSERT_VARIABLE(Root)
INSERT_VARIABLE(Quiet)
INSERT_VARIABLE(RuntimeDepsListFile)
+ INSERT_VARIABLE(ScriptExecutable)
INSERT_VARIABLE(Threads)
INSERT_VARIABLE(Time)
INSERT_VARIABLE(Tracelog)
« no previous file with comments | « tools/gn/switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698