Closed Lestropie closed 5 months ago
On master we are compiling with -Wa,-mbig-obj
. The same works with CMake (tested on my Windows laptop):
cmake --preset debug -DCMAKE_CXX_FLAGS="-Wa,-mbig-obj"
cmake --build ../build-mrtrix3-debug
Maybe it's worth adding this to the debug preset or create a separate "debug-windows" preset? We could also add this in the top level CMakeLists.txt
using add_compile_options
.
Closed by #2897
On the current
dev
branch, in an MSYS2 environment, I am unable to compile using the debugcmake
preset (I had hoped to use this to diagnosemrview
segfaulting when trying to evaluate #2887). Multiple compilation objects fail with the message "too many sections
". I'm confident we've had this before: I believe it's what triggered the reduction oftckmap
template utilisation in #252, and I mentioned it in #1267.It might be worth considering in the context of #2877. Splitting compilation across a greater number of objects and reducing compilation of the same code multiple times is used to speed up compilation there, whereas here the same logic largely applies but in the goal of making computation tractable.