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 ninja-build#931
I sent an RfC to ninja-build a few months ago; nobody objected.
  • Loading branch information
nico authored and projectgus committed Apr 26, 2018
1 parent c79ed83 commit 3673ed9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ninja.cc
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 3673ed9

Please sign in to comment.