--- a/src/plugins/PyFalkon/CMakeLists.txt
+++ b/src/plugins/PyFalkon/CMakeLists.txt
@@ -45,6 +45,9 @@ set(SHIBOKEN_OPTIONS --generator-set=shi
     --output-directory=${CMAKE_CURRENT_BINARY_DIR}
     --api-version="${API_VERSION}"
 )
+if(DEFINED ECM_SHIBOKEN_ARCH)
+    list(APPEND SHIBOKEN_OPTIONS --arch=${ECM_SHIBOKEN_ARCH})
+endif()
 
 # Specify which sources will be generated by shiboken, and their dependencies.
 set(GENERATED_SOURCES
