[PATCH] Fix for LLVM debug build failure on Windows + MSVC2010SP1
Aaron Ballman
aaron at aaronballman.com
Fri Jun 7 10:27:51 PDT 2013
On Fri, Jun 7, 2013 at 1:20 PM, Manish Verma <Manish.Verma at arm.com> wrote:
> Hi Aaron,
>
> I checked that on Linux the size of ASTMatchers/Dynamic/CMakeFiles/clangDynamicASTMatchers.dir/Registry.cpp.o
> is 34M and number of sections generated is 36986.
>
> Both, MSVC and mingw-gcc fails to build this file on Windows. I think
> we should either fix the source in Registry.cpp or add /bigobj option
> to build (the debug variant of) LLVM on Windows.
I think we should investigate what "fixing" the file would be.
Looking at Registry.cpp, it doesn't seem overly reasonable that we add
37000 sections to the object file. I have to imagine this has some
effect on link time as well...
Nothing obviously jumps out at me as to what is causing those sections
to be generated. Are we even sure the sections are desired? I'll
admit that I don't know...
Thanks!
~Aaron
More information about the llvm-commits
mailing list