[python] Reject -builtin with -noproxy

This option combination doesn't make sense, and result in code which
doesn't compile.

Fixes #1990
This commit is contained in:
Olly Betts 2022-01-26 14:32:32 +13:00
commit e9a1aa0f9f

View file

@ -447,6 +447,11 @@ public:
}
}
if (builtin && !shadow) {
Printf(stderr, "Incompatible options -builtin and -noproxy specified.\n");
SWIG_exit(EXIT_FAILURE);
}
if (doxygen)
doxygenTranslator = new PyDocConverter(doxygen_translator_flags);