[PATCH] Fix for LLVM debug build failure on Windows + MSVC2010SP1
Manish Verma
manish.verma at arm.com
Fri Jun 7 07:59:45 PDT 2013
Hi,
We have recently found that the debug builds on Windows are failing when
compiled with MSVC 2010SP1. The failure message generated is the following:
f:\work\src\llvm\tools\clang\include\clang\astmatchers\astmatchersinternal.h
(266): fatal error C1128: number of sections exceeded object file format
limit : compile with /bigobj
[F:\work\build\win_32-linkMT-x86_64\cl_16.00.40219.01-vs\dbg\llvm\tools\clan
g\lib\ASTMatchers\Dynamic\clangDynamicASTMatchers.vcxproj]
A similar build failure is also reported today in
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-June/030043.html.
Please find attached a patch which fixes the build failure and adds /bigobj
option to CXX_FLAGS for debug builds.
One of the downside of this patch is that the debug builds of LLVM can no
longer done using Visual Studio C++ 2005 or previous versions. Otherwise, I
couldn't find any other downside of using /bigobj option.
Manish
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-LLVM-753-Pass-bigobj-option-to-MSVC-when-building-th.patch
Type: application/octet-stream
Size: 1377 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130607/92861533/attachment.obj>
More information about the llvm-commits
mailing list