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
This commit is contained in:
parent
52e272954f
commit
8234c20e28
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue