From 8234c20e28627e4351612f85be75a125a35ac54e Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 15 Sep 2020 17:07:07 -0700 Subject: [PATCH] Remove threading from Python wrapper Python threading can cause issues with zone filler, connectivity calculations and many other parts. This forces the emitted code to hold the GIL when running. Fixes https://gitlab.com/kicad/code/kicad/issues/4436 --- pcbnew/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/CMakeLists.txt b/pcbnew/CMakeLists.txt index 9edaecf559..122a66bb39 100644 --- a/pcbnew/CMakeLists.txt +++ b/pcbnew/CMakeLists.txt @@ -449,7 +449,7 @@ if( KICAD_SCRIPTING ) # Generate pcbnew.py and pcbnew_wrap.cxx using swig # We deliberately do not use the CMake support for swig here, # i.e. swig_add_footprint()) because we want full control. - set( SWIG_OPTS -python -c++ -outdir ${CMAKE_CURRENT_BINARY_DIR} ${SWIG_FLAGS} ) + set( SWIG_OPTS -python -c++ -nothreads -outdir ${CMAKE_CURRENT_BINARY_DIR} ${SWIG_FLAGS} ) if( EXISTS ${CMAKE_CURRENT_BINARY_DIR}/doxygen-xml ) set( SWIG_OPTS ${SWIG_OPTS} -DENABLE_DOCSTRINGS_FROM_DOXYGEN )