From ffa0b503a8c19b4e2c8bf6a63803f76891976fd8 Mon Sep 17 00:00:00 2001 From: Roland Winklmeier Date: Mon, 7 Nov 2016 16:31:10 +0100 Subject: [PATCH] Handle addresses larger than 2 GB for MinGW builds Before this commit, the default memory limit was around 2 GB and our MinGW built executables hit this limit. Swift and all 3rd party libraries are 64 bit safe, so it is also safe to use the large-address-aware linker flag. This allows memory allocation up to 4 GB. refs #788 --- mkspecs/features/common_pre.prf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mkspecs/features/common_pre.prf b/mkspecs/features/common_pre.prf index cc5413103..cc73e08d1 100644 --- a/mkspecs/features/common_pre.prf +++ b/mkspecs/features/common_pre.prf @@ -98,6 +98,12 @@ linux-g++: QMAKE_LFLAGS_DEBUG *= -rdynamic include(warnings.pri) +################################ +# Handle addresses larger than 2GB +################################ + +win32-g++: QMAKE_LFLAGS *= -Wl,--large-address-aware + ################################ # Path to external dependencies ################################