From 6cbf4d8776afc4a1495f836e303d9e7db5e256b6 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 8 Mar 2016 16:34:37 +0000 Subject: [PATCH] Turning on the /bigobj flag for two more files that will not link with MSVC 2015 Win64 Debug due to the section limit. llvm-svn: 262938 --- clang/unittests/ASTMatchers/CMakeLists.txt | 6 ++++++ clang/unittests/Tooling/CMakeLists.txt | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/clang/unittests/ASTMatchers/CMakeLists.txt b/clang/unittests/ASTMatchers/CMakeLists.txt index 3ace9fe..81d36ea 100644 --- a/clang/unittests/ASTMatchers/CMakeLists.txt +++ b/clang/unittests/ASTMatchers/CMakeLists.txt @@ -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) diff --git a/clang/unittests/Tooling/CMakeLists.txt b/clang/unittests/Tooling/CMakeLists.txt index 3035fdc..607a903 100644 --- a/clang/unittests/Tooling/CMakeLists.txt +++ b/clang/unittests/Tooling/CMakeLists.txt @@ -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 -- 2.7.4