From a369fd6a9cf734f14e23e3ccfa4493979f2fed76 Mon Sep 17 00:00:00 2001 From: qu1ck Date: Sat, 7 Jan 2023 15:54:18 -0800 Subject: [PATCH] Fix swig optimization flag causing incompatible codegen --- pcbnew/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/CMakeLists.txt b/pcbnew/CMakeLists.txt index d9290f6994..b9be0e30f4 100644 --- a/pcbnew/CMakeLists.txt +++ b/pcbnew/CMakeLists.txt @@ -451,7 +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 -O ) +set( SWIG_OPTS -python -c++ -nothreads -fastdispatch -fvirtual ) set( SWIG_OPTS ${SWIG_OPTS} -outdir ${CMAKE_CURRENT_BINARY_DIR} ${SWIG_FLAGS} )