| Index: tools/gn/setup.cc
|
| diff --git a/tools/gn/setup.cc b/tools/gn/setup.cc
|
| index d8d525ad7b34b522316a00baf207b27b53bdc0c5..31b09e057d5b6021cd4a828c83de94a870c10bca 100644
|
| --- a/tools/gn/setup.cc
|
| +++ b/tools/gn/setup.cc
|
| @@ -157,8 +157,6 @@ Setup::Setup()
|
| loader_(new LoaderImpl(&build_settings_)),
|
| builder_(new Builder(loader_.get())),
|
| root_build_file_("//BUILD.gn"),
|
| - check_for_bad_items_(true),
|
| - check_for_unused_overrides_(true),
|
| check_public_headers_(false),
|
| dotfile_settings_(&build_settings_, std::string()),
|
| dotfile_scope_(&dotfile_settings_),
|
| @@ -234,14 +232,12 @@ void Setup::RunPreMessageLoop() {
|
|
|
| bool Setup::RunPostMessageLoop() {
|
| Err err;
|
| - if (check_for_bad_items_) {
|
| + if (build_settings_.check_for_bad_items()) {
|
| if (!builder_->CheckForBadItems(&err)) {
|
| err.PrintToStdout();
|
| return false;
|
| }
|
| - }
|
|
|
| - if (check_for_unused_overrides_) {
|
| if (!build_settings_.build_args().VerifyAllOverridesUsed(&err)) {
|
| // TODO(brettw) implement a system of warnings. Until we have a better
|
| // system, print the error but don't return failure.
|
|
|