From: Andrew Bartlett Date: Sat, 7 Dec 2019 00:37:10 +0000 (+1300) Subject: build: Skip build of python bindings when in fuzzing mode X-Git-Tag: ldb-2.1.0~311 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96184c10b8d048a67e57b7b838a1da2a1588455c;p=thirdparty%2Fsamba.git build: Skip build of python bindings when in fuzzing mode This will just save a bit of time and space. Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/buildtools/wafsamba/samba_python.py b/buildtools/wafsamba/samba_python.py index cb726cf0bcc..0b96a81ff41 100644 --- a/buildtools/wafsamba/samba_python.py +++ b/buildtools/wafsamba/samba_python.py @@ -104,6 +104,10 @@ def SAMBA_PYTHON(bld, name, if not bld.PYTHON_BUILD_IS_ENABLED(): enabled = False + # Save time, no need to build python bindings when fuzzing + if bld.env.enable_fuzzing: + enabled = False + # when we support static python modules we'll need to gather # the list from all the SAMBA_PYTHON() targets if init_function_sentinel is not None: