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

Unified Diff: tools/gn/command_args.cc

Issue 137713007: Check for GN args using the union of all rather than individually. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/args.cc ('k') | tools/gn/command_gyp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/command_args.cc
diff --git a/tools/gn/command_args.cc b/tools/gn/command_args.cc
index ad1a59699d00aa6fddb14f786f90ab4da5ae3d1a..dd28c11839efdb7a3101892fcf834f3857fe0041 100644
--- a/tools/gn/command_args.cc
+++ b/tools/gn/command_args.cc
@@ -123,8 +123,8 @@ int RunArgs(const std::vector<std::string>& args) {
if (!setup->DoSetup() || !setup->Run())
return 1;
- const Scope::KeyValueMap& build_args =
- setup->build_settings().build_args().declared_arguments();
+ Scope::KeyValueMap build_args;
+ setup->build_settings().build_args().MergeDeclaredArguments(&build_args);
if (args.size() == 1) {
// Get help on a specific command.
« no previous file with comments | « tools/gn/args.cc ('k') | tools/gn/command_gyp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698