Skip to content

Commit a91a30e

Browse files
author
Daniel Levin
committed
Add 'dupbuild' as deprecated warning
Fixup after 8f47d5a Since v1.12 ninja breaks compatibility with existing generators, particularly bob build system, which always invokes ninja with -w dupbuild=err See: https://github.com/ARM-software/bob-build/blob/master/bob.bash This patch should also be applied to the 'release' branch.
1 parent f220dc5 commit a91a30e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ninja.cc

+4
Original file line numberDiff line numberDiff line change
@@ -1230,6 +1230,10 @@ bool WarningEnable(const string& name, Options* options) {
12301230
} else if (name == "phonycycle=warn") {
12311231
options->phony_cycle_should_err = false;
12321232
return true;
1233+
} else if (name == "dupbuild=err" ||
1234+
name == "dupbuild=warn") {
1235+
Warning("deprecated warning 'dupbuild'");
1236+
return true;
12331237
} else if (name == "depfilemulti=err" ||
12341238
name == "depfilemulti=warn") {
12351239
Warning("deprecated warning 'depfilemulti'");

0 commit comments

Comments
 (0)