From 6dedda0cb5f96324d4c4a4d296358f66fd7c1277 Mon Sep 17 00:00:00 2001 From: kferjaoui Date: Tue, 6 Oct 2026 17:48:37 +0200 Subject: [PATCH] python: compile _aare with /bigobj on MSVC Adding the ClusterFinderFrozen bindings pushed module.cpp past the default COFF section limit, failing the Windows build with C1128. Co-Authored-By: Claude Opus 5.5 --- python/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index c1bc0bab..b38e74f2 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -35,6 +35,12 @@ set_target_properties( _aare PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/aare INTERPROCEDURAL_OPTIMIZATION FALSE) +# module.cpp instantiates every binding for every cluster size and type, which +# exceeds the default COFF section limit (MSVC error C1128). +if(MSVC) + target_compile_options(_aare PRIVATE /bigobj) +endif() + # ---- CUDA module (separate .so) -------------------------------------------- if(AARE_CUDA) pybind11_add_module(_aare_cuda NO_EXTRAS src/cuda_bindings.cu)