mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-10-31 21:51:28 +01:00
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
b0c6c01566
commit
6dedda0cb5
1 file changed
+6
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user