Skip to content

build: use `-mbig-obj` for Windows debug builds

Windows cross builds using -O0 (-DCMAKE_BUILD_TYPE=Debug) currently fail to compile, as some objects have too many sections. As a convenience, add -mbig-obj to our compile flags when using the Debug build type, so that if someone tries to build this way, it will work.

This would also be needed if we switched the depends flags to -O0. (maybe in #29796).

-mbig-obj

On PE/COFF target this option forces the use of big object file format, which allows more than 32768 sections.

Closes #28109 (closed). Seems unlikely that we are going to break up the relevant object files, and the main issue is still the inclusion of Boost.

Merge request reports

Loading