| Index: tools/gn/functions.cc
|
| diff --git a/tools/gn/functions.cc b/tools/gn/functions.cc
|
| index 393672c2c51a301ffd402a4b741ffc65baf38575..ac1c29492d15be5817f560f9ba02066c1dc99f0e 100644
|
| --- a/tools/gn/functions.cc
|
| +++ b/tools/gn/functions.cc
|
| @@ -233,6 +233,8 @@ Value RunConfig(const FunctionCallNode* function,
|
| // Create the new config.
|
| scoped_ptr<Config> config(new Config(scope->settings(), label));
|
| config->set_defined_from(function);
|
| + if (!Visibility::FillItemVisibility(config.get(), scope, err))
|
| + return Value();
|
|
|
| // Fill it.
|
| const SourceDir& input_dir = scope->GetSourceDir();
|
|
|