summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2018-04-05 19:00:06 (GMT)
committerGitHub <noreply@github.com>2018-04-05 19:00:06 (GMT)
commit03df526e07b62c0c5dfe61720cf9263ae4fb808b (patch)
tree11225b3136862a267f6ce0ad0aef66e156fe12f3
parente85f5ac86be249e6472b368ee7abbe98fe01bcd2 (diff)
parent42eefc854b32b3c1efc27548baaacdebad199853 (diff)
downloadNinja-03df526e07b62c0c5dfe61720cf9263ae4fb808b.zip
Ninja-03df526e07b62c0c5dfe61720cf9263ae4fb808b.tar.gz
Ninja-03df526e07b62c0c5dfe61720cf9263ae4fb808b.tar.bz2
Merge pull request #1406 from nico/dupeerr
make `-w dupbuild` default to `err`
-rw-r--r--src/ninja.cc1
1 files changed, 1 insertions, 0 deletions
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];