Index: tools/gn/args.cc |
diff --git a/tools/gn/args.cc b/tools/gn/args.cc |
index 795c1495669c0f444b5dd32670059fdfdea97a75..ca55b3d19cc2274a495737eb3770e7bd59dac226 100644 |
--- a/tools/gn/args.cc |
+++ b/tools/gn/args.cc |
@@ -79,6 +79,14 @@ void Args::AddArgOverrides(const Scope::KeyValueMap& overrides) { |
} |
} |
+const Value* Args::GetArgOverride(const char* name) const { |
+ Scope::KeyValueMap::const_iterator found = |
+ all_overrides_.find(base::StringPiece(name)); |
+ if (found == all_overrides_.end()) |
+ return NULL; |
+ return &found->second; |
+} |
+ |
void Args::SetupRootScope(Scope* dest, |
const Scope::KeyValueMap& toolchain_overrides) const { |
SetSystemVars(dest); |
@@ -235,7 +243,6 @@ void Args::SetSystemVars(Scope* dest) const { |
dest->MarkUsed(variables::kOs); |
} |
- |
void Args::ApplyOverrides(const Scope::KeyValueMap& values, |
Scope* scope) const { |
for (Scope::KeyValueMap::const_iterator i = values.begin(); |