From 42eefc854b32b3c1efc27548baaacdebad199853 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 5 Apr 2018 14:48:35 -0400 Subject: make `-w dupbuild` default to `err` You can still opt out of this by passing `-w dupbuild=warn`. But if you're getting this diagnostic, your build files are incorrect and you should ideally just fix them. This is step 3 on https://github.com/ninja-build/ninja/issues/931 I sent an RfC to ninja-build a few months ago; nobody objected. --- src/ninja.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ninja.cc b/src/ninja.cc index f4246d6..f9efc77 100644 --- a/src/ninja.cc +++ b/src/ninja.cc @@ -1184,6 +1184,7 @@ NORETURN void real_main(int argc, char** argv) { BuildConfig config; Options options = {}; options.input_file = "build.ninja"; + options.dupe_edges_should_err = true; setvbuf(stdout, NULL, _IOLBF, BUFSIZ); const char* ninja_command = argv[0]; -- cgit v0.12