python: compile _aare with /bigobj on MSVC
Build on RHEL8 / build (push) Successful in 4m4s
Build on RHEL9 / build (push) Successful in 4m14s
Run tests using data on local RHEL8 / build (push) Failing after 4m54s

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 <noreply@anthropic.com>
This commit is contained in:
kferjaouiandClaude Opus 5.5 committed 2026-10-06 17:48:37 +02:00
1 parent b0c6c01566
commit 6dedda0cb5
1 file changed
+6
+6
View File
@@ -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)