Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: use
-mbig-obj
for mingw-w64 Debug builds
Windows cross builds using `-O0` 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. `-mbig-obj` > On PE/COFF target this option forces the use of big object > file format, which allows more than 32768 sections. Co-authored-by: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>