Remove deprecated -py3 flag, use -O for swig

This commit is contained in:
Seth Hillbrand 2023-01-03 15:55:54 -08:00
parent 98d55ce82f
commit 6271917682
1 changed files with 1 additions and 4 deletions

View File

@ -451,10 +451,7 @@ endforeach()
# i.e. swig_add_footprint()) because we want full control.
# Avoid threading in SWIG (breaks threads in pcbnew)
set( SWIG_OPTS -python -c++ -nothreads )
# Use python3-specific features
set( SWIG_OPTS ${SWIG_OPTS} -py3 )
set( SWIG_OPTS -python -c++ -nothreads -O )
set( SWIG_OPTS ${SWIG_OPTS} -outdir ${CMAKE_CURRENT_BINARY_DIR} ${SWIG_FLAGS} )