Add /bigobj for SPIRV dialect on MSVC.
authorStella Laurenzo <stellaraccident@gmail.com>
Sun, 29 Mar 2020 00:49:38 +0000 (17:49 -0700)
committerStella Laurenzo <stellaraccident@gmail.com>
Mon, 30 Mar 2020 19:00:00 +0000 (12:00 -0700)
Summary: 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.

Reviewers: mravishankar, antiagainst

Subscribers: mgorny, mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, Joonsoo, bader, llvm-commits

Tags: #llvm

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

mlir/lib/Dialect/SPIRV/CMakeLists.txt

index afb7497..e6834ca 100644 (file)
@@ -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)