Compile the RecursiveASTVisitor callbacks test with "/bigobj"
authorDmitri Gribenko <gribozavr@gmail.com>
Mon, 29 Jun 2020 15:01:58 +0000 (17:01 +0200)
committerDmitri Gribenko <gribozavr@gmail.com>
Mon, 29 Jun 2020 15:04:45 +0000 (17:04 +0200)
Summary:
This file was exceeding a limit in MSVC:

fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj

Reviewers: erichkeane

Reviewed By: erichkeane

Subscribers: jmorse, gribozavr2, mgorny, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82766

clang/unittests/Tooling/CMakeLists.txt

index 9d96df0..c439f5a 100644 (file)
@@ -9,6 +9,7 @@ set(LLVM_LINK_COMPONENTS
 if (MSVC)
   set_source_files_properties(RecursiveASTVisitorTest.cpp PROPERTIES COMPILE_FLAGS /bigobj)
   set_source_files_properties(RecursiveASTVisitorTestExprVisitor.cpp PROPERTIES COMPILE_FLAGS /bigobj)
+  set_source_files_properties(RecursiveASTVisitorTests/Callbacks.cpp PROPERTIES COMPILE_FLAGS /bigobj)
   set_source_files_properties(SourceCodeTest.cpp PROPERTIES COMPILE_FLAGS /bigobj)
 endif()