[clang] 1cf2e45 - Compile the RecursiveASTVisitor callbacks test with "/bigobj"

Dmitri Gribenko via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 29 08:05:12 PDT 2020


Author: Dmitri Gribenko
Date: 2020-06-29T17:04:45+02:00
New Revision: 1cf2e45c19ffc0635c96279779df43ba51630bba

URL: https://github.com/llvm/llvm-project/commit/1cf2e45c19ffc0635c96279779df43ba51630bba
DIFF: https://github.com/llvm/llvm-project/commit/1cf2e45c19ffc0635c96279779df43ba51630bba.diff

LOG: Compile the RecursiveASTVisitor callbacks test with "/bigobj"

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

Added: 
    

Modified: 
    clang/unittests/Tooling/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/clang/unittests/Tooling/CMakeLists.txt b/clang/unittests/Tooling/CMakeLists.txt
index 9d96df0008ff..c439f5a78637 100644
--- a/clang/unittests/Tooling/CMakeLists.txt
+++ b/clang/unittests/Tooling/CMakeLists.txt
@@ -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()
 


        


More information about the cfe-commits mailing list