mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
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
This commit is contained in:
committed by
Klaus Basan
parent
c9ddb2ba39
commit
ffa0b503a8
@@ -98,6 +98,12 @@ linux-g++: QMAKE_LFLAGS_DEBUG *= -rdynamic
|
|||||||
|
|
||||||
include(warnings.pri)
|
include(warnings.pri)
|
||||||
|
|
||||||
|
################################
|
||||||
|
# Handle addresses larger than 2GB
|
||||||
|
################################
|
||||||
|
|
||||||
|
win32-g++: QMAKE_LFLAGS *= -Wl,--large-address-aware
|
||||||
|
|
||||||
################################
|
################################
|
||||||
# Path to external dependencies
|
# Path to external dependencies
|
||||||
################################
|
################################
|
||||||
|
|||||||
Reference in New Issue
Block a user