From 032d43a8fe02938486e7d60c9f738a6e34be0fa6 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Tue, 26 Jun 2018 17:45:26 +0000 Subject: [PATCH] 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 --- lib/CodeGen/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.50.1