File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ if (FORCE_AVX2)
4141 if (MSVC )
4242 check_cxx_compiler_flag ("/arch:AVX2" COMPILER_SUPPORTS_AVX2 )
4343 if (COMPILER_SUPPORTS_AVX2)
44- target_compile_options (compile-options INTERFACE /O2 /arch:AVX2 /W1 /EHsc /fp:precise /MP )
44+ target_compile_options (compile-options INTERFACE /O2 /arch:AVX2 /W1 /EHsc /fp:precise /MP /bigobj )
4545 else ()
46- target_compile_options (compile-options INTERFACE /O2 /W1 /EHsc /fp:precise /MP )
46+ target_compile_options (compile-options INTERFACE /O2 /W1 /EHsc /fp:precise /MP /bigobj )
4747 endif ()
4848 elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
4949 check_cxx_compiler_flag ("-mavx2" COMPILER_SUPPORTS_AVX2 )
@@ -79,7 +79,7 @@ else() # Native build
7979 elseif (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" )
8080 target_compile_options (compile-options INTERFACE -O2 -DNDEBUG -march=native -fpic )
8181 elseif (MSVC )
82- target_compile_options (compile-options INTERFACE /W4 /EHsc /fp:precise /MP $<$<CONFIG :Release >:/O2 >)
82+ target_compile_options (compile-options INTERFACE /W4 /EHsc /fp:precise /MP /bigobj $<$<CONFIG :Release >:/O2 >)
8383 if (SUPPORT_AVX512F)
8484 target_compile_options (compile-options INTERFACE /arch:AVX512 )
8585 elseif (SUPPORT_AVX2)
You can’t perform that action at this time.
0 commit comments