From b4aa6dacfa8cd5c474d5a5d5ef4022c623c13828 Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Tue, 6 Apr 2021 14:59:53 +0200 Subject: [PATCH] MSVC: Add /bigobj for debug builds. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b56871f8..35979249 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -141,7 +141,8 @@ if (CMAKE_COMPILER_IS_GNUCXX OR ((${CMAKE_CXX_COMPILER_ID} MATCHES "Clang") AND set(spirv-cross-link-flags "${spirv-cross-link-flags} -fsanitize=thread") endif() elseif (MSVC) - set(spirv-compiler-options ${spirv-compiler-options} /wd4267 /wd4996) + # AppVeyor spuriously fails in debug build on older MSVC without /bigobj. + set(spirv-compiler-options ${spirv-compiler-options} /wd4267 /wd4996 $<$:/bigobj>) endif() macro(extract_headers out_abs file_list)