]> granicus.if.org Git - clang/commitdiff
Compile CodeGenModule.cpp with /bigobj.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 26 Jun 2018 17:45:26 +0000 (17:45 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 26 Jun 2018 17:45:26 +0000 (17:45 +0000)
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

lib/CodeGen/CMakeLists.txt

index 29e54966a0e82552ff8071279434317b333f8e9e..2a0f4f0e83ecfd3e70b6e1251efcf019a5615865 100644 (file)
@@ -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