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.

llvm-svn: 335636

clang/lib/CodeGen/CMakeLists.txt

index 29e5496..2a0f4f0 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