Skip to content

Commit

Permalink
make -w dupbuild default to err
Browse files Browse the repository at this point in the history
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 #931
I sent an RfC to ninja-build a few months ago; nobody objected.
  • Loading branch information
nico committed Apr 5, 2018
1 parent e85f5ac commit 42eefc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ninja.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 42eefc8

Please sign in to comment.