| Index: tools/gn/function_exec_script.cc
|
| diff --git a/tools/gn/function_exec_script.cc b/tools/gn/function_exec_script.cc
|
| index d5e66ae78cbceecc1fa49a2777df6c1713ac1404..231693b5d2e7b2a6317bdb70c343b30286e2e13d 100644
|
| --- a/tools/gn/function_exec_script.cc
|
| +++ b/tools/gn/function_exec_script.cc
|
| @@ -171,6 +171,13 @@ Value RunExecScript(Scope* scope,
|
| // Make the command line.
|
| const base::FilePath& python_path = build_settings->python_path();
|
| base::CommandLine cmdline(python_path);
|
| +
|
| + // CommandLine tries to interpret arguments by default. Passing "--" disables
|
| + // this for everything following the "--", so pass this as the very first
|
| + // thing to python. Python ignores a -- before the .py file, and this makes
|
| + // CommandLine let through arguments without modifying them.
|
| + cmdline.AppendArg("--");
|
| +
|
| cmdline.AppendArgPath(script_path);
|
|
|
| if (args.size() >= 2) {
|
|
|