[PATCH] D79292: [sema] NFC Unable to build Sema library with MSVC Debug target due to missing /bigobj

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat May 2 08:59:33 PDT 2020


MyDeveloperDay created this revision.
MyDeveloperDay added reviewers: ABataev, jdoerfert, aaron.ballman, rnk.
MyDeveloperDay added a project: clang.
Herald added a subscriber: mgorny.

Unable to build sema library on MSVC with Debug target

  C:\clang\llvm-project\clang\lib\Sema\SemaOpenMP.cpp : fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj




Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79292

Files:
  clang/lib/Sema/CMakeLists.txt


Index: clang/lib/Sema/CMakeLists.txt
===================================================================
--- clang/lib/Sema/CMakeLists.txt
+++ clang/lib/Sema/CMakeLists.txt
@@ -9,6 +9,7 @@
   set_source_files_properties(SemaExprCXX.cpp PROPERTIES COMPILE_FLAGS /bigobj)
   set_source_files_properties(SemaTemplate.cpp PROPERTIES COMPILE_FLAGS /bigobj)
   set_source_files_properties(SemaTemplateDeduction.cpp PROPERTIES COMPILE_FLAGS /bigobj)
+  set_source_files_properties(SemaOpenMP.cpp PROPERTIES COMPILE_FLAGS /bigobj)
 endif()
 
 clang_tablegen(OpenCLBuiltins.inc -gen-clang-opencl-builtins


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79292.261652.patch
Type: text/x-patch
Size: 596 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200502/a32fd596/attachment.bin>


More information about the cfe-commits mailing list