OSDN Git Service

With MSVC, file needs to be compiled with /BIGOBJ
authorAdrian McCarthy <amccarth@google.com>
Thu, 16 Jul 2020 22:15:51 +0000 (15:15 -0700)
committerAdrian McCarthy <amccarth@google.com>
Fri, 17 Jul 2020 16:43:06 +0000 (09:43 -0700)
commit14dde438d69c81ab4651157a94d32e5555e804ff
tree782fece6cef43714a48cfd0e26f17b24c8c9780f
parentf8a29b174a965acb942dd3ef5f8ef2c32620777b
With MSVC, file needs to be compiled with /BIGOBJ

MSVC, by default, limits the number of sections generated by a single
translation unit to 2^16.  In a debug build, each function or method
can require 4 sections, so it's not uncommon to hit it.

I saw the problem when building tests for LLDB (but, interestingly, not
for LLDB itself).

Differential Revision: https://reviews.llvm.org/D83991
clang/lib/ARCMigrate/CMakeLists.txt