From e9a1aa0f9fd3d68bae800b9f99ce602cdb0101c1 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Wed, 26 Jan 2022 14:32:32 +1300 Subject: [PATCH] [python] Reject -builtin with -noproxy This option combination doesn't make sense, and result in code which doesn't compile. Fixes #1990 --- Source/Modules/python.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index 119a32364..6ca64e10f 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -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);