Turning on the /bigobj flag for two more files that will not link with MSVC 2015...
authorAaron Ballman <aaron@aaronballman.com>
Tue, 8 Mar 2016 16:34:37 +0000 (16:34 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 8 Mar 2016 16:34:37 +0000 (16:34 +0000)
llvm-svn: 262938

clang/unittests/ASTMatchers/CMakeLists.txt
clang/unittests/Tooling/CMakeLists.txt

index 3ace9fe..81d36ea 100644 (file)
@@ -2,6 +2,12 @@ set(LLVM_LINK_COMPONENTS
   Support
   )
 
+# By default MSVC has a 2^16 limit on the number of sections in an object file,
+# and this needs more than that.
+if (MSVC)
+  set_source_files_properties(ASTMatchersTest.cpp PROPERTIES COMPILE_FLAGS /bigobj)
+endif()
+
 add_clang_unittest(ASTMatchersTests
   ASTMatchersTest.cpp)
 
index 3035fdc..607a903 100644 (file)
@@ -3,6 +3,12 @@ set(LLVM_LINK_COMPONENTS
   Support
   )
 
+# By default MSVC has a 2^16 limit on the number of sections in an object file,
+# and this needs more than that.
+if (MSVC)
+  set_source_files_properties(RecursiveASTVisitorTestExprVisitor.cpp PROPERTIES COMPILE_FLAGS /bigobj)
+endif()
+
 add_clang_unittest(ToolingTests
   CommentHandlerTest.cpp
   CompilationDatabaseTest.cpp