mdbx-cmake: add /bigobj for MSVC.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2022-06-02 20:33:05 +03:00
parent b6138c39f0
commit f6db64bea1

View File

@ -761,7 +761,7 @@ macro(setup_compile_flags)
add_compile_flags("CXX" "/Zc:__cplusplus") add_compile_flags("CXX" "/Zc:__cplusplus")
endif() endif()
remove_compile_flag("C;CXX" "/W3") remove_compile_flag("C;CXX" "/W3")
add_compile_flags("C;CXX" "/W4 /utf-8") add_compile_flags("C;CXX" "/W4 /utf-8 /bigobj")
else() else()
if(CC_HAS_WALL) if(CC_HAS_WALL)
add_compile_flags("C;CXX" "-Wall") add_compile_flags("C;CXX" "-Wall")