Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <algorithm> | 5 #include <algorithm> |
| 6 #include <limits> | 6 #include <limits> |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "tools/gn/err.h" | 9 #include "tools/gn/err.h" |
| 10 #include "tools/gn/functions.h" | 10 #include "tools/gn/functions.h" |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 314 " The tool() function call specifies the commands commands to run for\n" | 314 " The tool() function call specifies the commands commands to run for\n" |
| 315 " a given step. See \"gn help tool\".\n" | 315 " a given step. See \"gn help tool\".\n" |
| 316 "\n" | 316 "\n" |
| 317 " toolchain_args\n" | 317 " toolchain_args\n" |
| 318 " Overrides for build arguments to pass to the toolchain when invoking\n" | 318 " Overrides for build arguments to pass to the toolchain when invoking\n" |
| 319 " it. This is a variable of type \"scope\" where the variable names\n" | 319 " it. This is a variable of type \"scope\" where the variable names\n" |
| 320 " correspond to varibles in declare_args() blocks.\n" | 320 " correspond to varibles in declare_args() blocks.\n" |
| 321 "\n" | 321 "\n" |
| 322 " When you specify a target using an alternate toolchain, the master\n" | 322 " When you specify a target using an alternate toolchain, the master\n" |
| 323 " build configuration file is re-interpreted in the context of that\n" | 323 " build configuration file is re-interpreted in the context of that\n" |
| 324 " toolchain (see \"gn help toolchain\"). The toolchain_args allows you\n" | 324 " toolchain. toolchain_args allows you\n" |
|
brettw
2016/08/10 17:12:41
This wrapping should be fixed rather than having a
| |
| 325 " to control the arguments passed into this alternate invocation of\n" | 325 " to control the arguments passed into this alternate invocation of\n" |
| 326 " the build.\n" | 326 " the build.\n" |
| 327 "\n" | 327 "\n" |
| 328 " Any default system arguments or arguments passed in via \"gn args\"\n" | 328 " Any default system arguments or arguments passed in via \"gn args\"\n" |
| 329 " will also be passed to the alternate invocation unless explicitly\n" | 329 " will also be passed to the alternate invocation unless explicitly\n" |
| 330 " overridden by toolchain_args.\n" | 330 " overridden by toolchain_args.\n" |
| 331 "\n" | 331 "\n" |
| 332 " The toolchain_args will be ignored when the toolchain being defined\n" | 332 " The toolchain_args will be ignored when the toolchain being defined\n" |
| 333 " is the default. In this case, it's expected you want the default\n" | 333 " is the default. In this case, it's expected you want the default\n" |
| 334 " argument values.\n" | 334 " argument values.\n" |
| (...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1079 if (err->has_error()) | 1079 if (err->has_error()) |
| 1080 return Value(); | 1080 return Value(); |
| 1081 | 1081 |
| 1082 block_scope->DetachFromContaining(); | 1082 block_scope->DetachFromContaining(); |
| 1083 scope->SetValue("toolchain_args", Value(function, std::move(block_scope)), | 1083 scope->SetValue("toolchain_args", Value(function, std::move(block_scope)), |
| 1084 function); | 1084 function); |
| 1085 return Value(); | 1085 return Value(); |
| 1086 } | 1086 } |
| 1087 | 1087 |
| 1088 } // namespace functions | 1088 } // namespace functions |
| OLD | NEW |