1
0
Fork 0

[Fix] Use /bigobj on both x86 and x64

This commit is contained in:
Eric Kotato 2022-09-15 23:11:23 +03:00 committed by Eric Kotato
parent 30a7163fbf
commit 1ae35222da

View file

@ -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
@ -62,12 +63,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.