r262938 - Turning on the /bigobj flag for two more files that will not link with MSVC 2015 Win64 Debug due to the section limit.

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 8 08:34:37 PST 2016


Author: aaronballman
Date: Tue Mar  8 10:34:37 2016
New Revision: 262938

URL: http://llvm.org/viewvc/llvm-project?rev=262938&view=rev
Log:
Turning on the /bigobj flag for two more files that will not link with MSVC 2015 Win64 Debug due to the section limit.

Modified:
    cfe/trunk/unittests/ASTMatchers/CMakeLists.txt
    cfe/trunk/unittests/Tooling/CMakeLists.txt

Modified: cfe/trunk/unittests/ASTMatchers/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/ASTMatchers/CMakeLists.txt?rev=262938&r1=262937&r2=262938&view=diff
==============================================================================
--- cfe/trunk/unittests/ASTMatchers/CMakeLists.txt (original)
+++ cfe/trunk/unittests/ASTMatchers/CMakeLists.txt Tue Mar  8 10:34:37 2016
@@ -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)
 

Modified: cfe/trunk/unittests/Tooling/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Tooling/CMakeLists.txt?rev=262938&r1=262937&r2=262938&view=diff
==============================================================================
--- cfe/trunk/unittests/Tooling/CMakeLists.txt (original)
+++ cfe/trunk/unittests/Tooling/CMakeLists.txt Tue Mar  8 10:34:37 2016
@@ -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




More information about the cfe-commits mailing list