1
0
Fork 0

Enable /LARGEADDRESSAWARE for 32 bit Windows build.

This commit is contained in:
John Preston 2021-06-24 16:01:49 +04:00
parent c29450cbf1
commit 3ba5f8d46a

View file

@ -41,7 +41,12 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
if (build_win64)
target_compile_options(common_options
INTERFACE
/bigobj # scheme.cpp has too many sections.
/BIGOBJ # scheme.cpp has too many sections.
)
else()
target_link_options(common_options
INTERFACE
/LARGEADDRESSAWARE # Allow more than 2 GB in 32 bit application.ß
)
endif()
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")