Enabling the /bigobj flag for SemaDeclAttr.cpp.
authorAaron Ballman <aaron@aaronballman.com>
Fri, 12 May 2017 14:30:49 +0000 (14:30 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 12 May 2017 14:30:49 +0000 (14:30 +0000)
This resolves compile errors with MSVC 2015 x64 debug builds where SemaDeclAttr.cpp is hitting the section symbol limit.

llvm-svn: 302901

clang/lib/Sema/CMakeLists.txt

index 7a59732..7d9ae62 100644 (file)
@@ -3,6 +3,7 @@ set(LLVM_LINK_COMPONENTS
   )
 
 if (MSVC)
+  set_source_files_properties(SemaDeclAttr.cpp PROPERTIES COMPILE_FLAGS /bigobj)
   set_source_files_properties(SemaExpr.cpp PROPERTIES COMPILE_FLAGS /bigobj)
 endif()