mingw: link i686 binaries as large address aware so they can use more than 2GB RAM (up to 4GB)

This commit is contained in:
Sebastian Krzyszkowiak 2018-07-06 14:29:14 +02:00
parent a4bd7fbb0f
commit 8e1ece69f7

View file

@ -11,6 +11,8 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
set(MINGDIR /usr/i686-w64-mingw32) set(MINGDIR /usr/i686-w64-mingw32)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--large-address-aware")
# Do a no-op access on the CMAKE_TOOLCHAIN_FILE variable so that CMake will not issue a warning on it being unused. # Do a no-op access on the CMAKE_TOOLCHAIN_FILE variable so that CMake will not issue a warning on it being unused.
if (CMAKE_TOOLCHAIN_FILE) if (CMAKE_TOOLCHAIN_FILE)
endif() endif()