mirror of
https://github.com/intel/llvm.git
synced 2026-02-08 00:50:03 +08:00
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
This commit is contained in:
@@ -2,6 +2,12 @@ set(LLVM_LINK_COMPONENTS
|
||||
Support
|
||||
)
|
||||
|
||||
# By default MSVC has a 2^16 limit on the number of sections in an object
|
||||
# file, and Transforms.cpp needs more than that.
|
||||
if (MSVC)
|
||||
set_source_files_properties(Transforms.cpp PROPERTIES COMPILE_FLAGS /bigobj)
|
||||
endif()
|
||||
|
||||
add_clang_library(clangARCMigrate
|
||||
ARCMT.cpp
|
||||
ARCMTActions.cpp
|
||||
|
||||
Reference in New Issue
Block a user