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 to control the arguments\n" |
325 " to control the arguments passed into this alternate invocation of\n" | 325 " passed into this alternate invocation of the build.\n" |
326 " the build.\n" | |
327 "\n" | 326 "\n" |
328 " Any default system arguments or arguments passed in via \"gn args\"\n" | 327 " Any default system arguments or arguments passed in via \"gn args\"\n" |
329 " will also be passed to the alternate invocation unless explicitly\n" | 328 " will also be passed to the alternate invocation unless explicitly\n" |
330 " overridden by toolchain_args.\n" | 329 " overridden by toolchain_args.\n" |
331 "\n" | 330 "\n" |
332 " The toolchain_args will be ignored when the toolchain being defined\n" | 331 " 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" | 332 " is the default. In this case, it's expected you want the default\n" |
334 " argument values.\n" | 333 " argument values.\n" |
335 "\n" | 334 "\n" |
336 " See also \"gn help buildargs\" for an overview of these arguments.\n" | 335 " See also \"gn help buildargs\" for an overview of these arguments.\n" |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1079 if (err->has_error()) | 1078 if (err->has_error()) |
1080 return Value(); | 1079 return Value(); |
1081 | 1080 |
1082 block_scope->DetachFromContaining(); | 1081 block_scope->DetachFromContaining(); |
1083 scope->SetValue("toolchain_args", Value(function, std::move(block_scope)), | 1082 scope->SetValue("toolchain_args", Value(function, std::move(block_scope)), |
1084 function); | 1083 function); |
1085 return Value(); | 1084 return Value(); |
1086 } | 1085 } |
1087 | 1086 |
1088 } // namespace functions | 1087 } // namespace functions |
OLD | NEW |