This is an archive of the discontinued LLVM Phabricator instance.

With MSVC, file needs to be compiled with /BIGOBJ
ClosedPublic

Authored by amccarth on Jul 16 2020, 3:25 PM.

Details

Summary

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. The cl.exe option /BIGOBJ raises the limit.

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

Diff Detail

Event Timeline

amccarth created this revision.Jul 16 2020, 3:25 PM
labath accepted this revision.Jul 17 2020, 2:21 AM

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

My guess would be this is because this file does not actually get used in lldb. It is used in the clang driver though, which is a dependency for running lldb tests...

This revision is now accepted and ready to land.Jul 17 2020, 2:21 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 17 2020, 9:43 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript