From be38bbc82302461e34fa2e52212e2951239ea523 Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Thu, 15 Sep 2022 23:11:23 +0300 Subject: [PATCH] [Fix] Use /bigobj on both x86 and x64 --- options_win.cmake | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/options_win.cmake b/options_win.cmake index 814d534..e2f160a 100644 --- a/options_win.cmake +++ b/options_win.cmake @@ -27,6 +27,7 @@ INTERFACE if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") target_compile_options(common_options INTERFACE + /bigobj # scheme.cpp and history_widget.cpp has too many sections. /permissive- # /Qspectre /utf-8 @@ -63,12 +64,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") ) endif() - if (build_win64) - target_compile_options(common_options - INTERFACE - /bigobj # scheme.cpp has too many sections. - ) - else() + if (NOT build_win64) # target_compile_options(common_options # INTERFACE # /fp:except # Crash-report fp exceptions in 32 bit build.