]> granicus.if.org Git - clang/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@262938 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 3ace9fe264b8ac938cb110d4eb382634c7bae56b..81d36ea99ab04e63dbe5750c52553238c047fede 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 3035fdcc015155270b935a9139bbabded16a5cc6..607a903ce3d550cf7ddaabc85a6db087ffaea7e1 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