From: Peter Collingbourne Date: Tue, 26 Jun 2018 17:45:26 +0000 (+0000) Subject: Compile CodeGenModule.cpp with /bigobj. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=032d43a8fe02938486e7d60c9f738a6e34be0fa6;p=clang Compile CodeGenModule.cpp with /bigobj. Apparently we're now hitting an object file section limit on this file with expensive checks enabled. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335636 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CMakeLists.txt b/lib/CodeGen/CMakeLists.txt index 29e54966a0..2a0f4f0e83 100644 --- a/lib/CodeGen/CMakeLists.txt +++ b/lib/CodeGen/CMakeLists.txt @@ -32,6 +32,10 @@ if (CLANG_BUILT_STANDALONE) set(codegen_deps) endif() +if (MSVC) + set_source_files_properties(CodeGenModule.cpp PROPERTIES COMPILE_FLAGS /bigobj) +endif() + add_clang_library(clangCodeGen BackendUtil.cpp CGAtomic.cpp