[PATCH] D77002: Add /bigobj for SPIRV dialect on MSVC.

Stella Laurenzo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 28 18:16:18 PDT 2020


stellaraccident created this revision.
Herald added subscribers: llvm-commits, bader, Joonsoo, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini, mgorny.
Herald added a reviewer: mravishankar.
Herald added a reviewer: antiagainst.
Herald added a project: LLVM.

This object file has grown beyond the default limit, and elsewhere in LLVM, we seem to be setting this flag as a one-off, so continuing that here.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77002

Files:
  mlir/lib/Dialect/SPIRV/CMakeLists.txt


Index: mlir/lib/Dialect/SPIRV/CMakeLists.txt
===================================================================
--- mlir/lib/Dialect/SPIRV/CMakeLists.txt
+++ mlir/lib/Dialect/SPIRV/CMakeLists.txt
@@ -1,3 +1,7 @@
+if (MSVC)
+  set_source_files_properties(SPIRVDialect.cpp PROPERTIES COMPILE_FLAGS /bigobj)
+endif()
+
 set(LLVM_TARGET_DEFINITIONS SPIRVCanonicalization.td)
 mlir_tablegen(SPIRVCanonicalization.inc -gen-rewriters)
 add_public_tablegen_target(MLIRSPIRVCanonicalizationIncGen)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77002.253387.patch
Type: text/x-patch
Size: 490 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200329/b2f72a92/attachment-0001.bin>


More information about the llvm-commits mailing list