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

Side by Side Diff: tools/gn/args.cc

Issue 2219083002: Update GN toolchain_args to be a variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge remote-tracking branch 'origin/master' into toolchain_args Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | tools/gn/command_format.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "tools/gn/args.h" 5 #include "tools/gn/args.h"
6 6
7 #include "base/sys_info.h" 7 #include "base/sys_info.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "tools/gn/variables.h" 9 #include "tools/gn/variables.h"
10 10
(...skipping 17 matching lines...) Expand all
28 " If specified, arguments from the --args command line flag are used. If\n" 28 " If specified, arguments from the --args command line flag are used. If\n"
29 " that flag is not specified, args from previous builds in the build\n" 29 " that flag is not specified, args from previous builds in the build\n"
30 " directory will be used (this is in the file args.gn in the build\n" 30 " directory will be used (this is in the file args.gn in the build\n"
31 " directory).\n" 31 " directory).\n"
32 "\n" 32 "\n"
33 " Last, for targets being compiled with a non-default toolchain, the\n" 33 " Last, for targets being compiled with a non-default toolchain, the\n"
34 " toolchain overrides are applied. These are specified in the\n" 34 " toolchain overrides are applied. These are specified in the\n"
35 " toolchain_args section of a toolchain definition. The use-case for\n" 35 " toolchain_args section of a toolchain definition. The use-case for\n"
36 " this is that a toolchain may be building code for a different\n" 36 " this is that a toolchain may be building code for a different\n"
37 " platform, and that it may want to always specify Posix, for example.\n" 37 " platform, and that it may want to always specify Posix, for example.\n"
38 " See \"gn help toolchain_args\" for more.\n" 38 " See \"gn help toolchain\" for more.\n"
39 "\n" 39 "\n"
40 " If you specify an override for a build argument that never appears in\n" 40 " If you specify an override for a build argument that never appears in\n"
41 " a \"declare_args\" call, a nonfatal error will be displayed.\n" 41 " a \"declare_args\" call, a nonfatal error will be displayed.\n"
42 "\n" 42 "\n"
43 "Examples\n" 43 "Examples\n"
44 "\n" 44 "\n"
45 " gn args out/FooBar\n" 45 " gn args out/FooBar\n"
46 " Create the directory out/FooBar and open an editor. You would type\n" 46 " Create the directory out/FooBar and open an editor. You would type\n"
47 " something like this into that file:\n" 47 " something like this into that file:\n"
48 " enable_doom_melon=false\n" 48 " enable_doom_melon=false\n"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 Scope* scope) const { 348 Scope* scope) const {
349 lock_.AssertAcquired(); 349 lock_.AssertAcquired();
350 return declared_arguments_per_toolchain_[scope->settings()]; 350 return declared_arguments_per_toolchain_[scope->settings()];
351 } 351 }
352 352
353 Scope::KeyValueMap& Args::OverridesForToolchainLocked( 353 Scope::KeyValueMap& Args::OverridesForToolchainLocked(
354 Scope* scope) const { 354 Scope* scope) const {
355 lock_.AssertAcquired(); 355 lock_.AssertAcquired();
356 return toolchain_overrides_[scope->settings()]; 356 return toolchain_overrides_[scope->settings()];
357 } 357 }
OLDNEW
« no previous file with comments | « no previous file | tools/gn/command_format.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698