diff options
author | Tank_Master <none@none> | 2012-06-12 09:02:47 -0700 |
---|---|---|
committer | Tank_Master <none@none> | 2012-06-12 09:02:47 -0700 |
commit | 6c1196d052e876bddd75bf9eeb71f75d64e60cc5 (patch) | |
tree | 01d91c78e75686ee443d51655e306d334beddfc7 /indra/cmake/00-Common.cmake | |
parent | ce563795e1f5d7493b975393bea9ec5cab90fd6a (diff) |
Enable /LARGEADDRESSAWARE compiler flag for windows compiling
This allows the app to allocate up to 4GB memory on 64bit hosts and 32bit hosts with PAE instead of 2GB
32bit stock OSs will still be limited to 2GB, with no bemnifit or negigitive impact
This has the benifit of not crashing the viewer when the viewer memory exceeds 2GB on 64bit hosts
Linux and Mac by nature use up to 4GB for a 32bit app, even on a 32bit host
Diffstat (limited to 'indra/cmake/00-Common.cmake')
-rw-r--r-- | indra/cmake/00-Common.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/cmake/00-Common.cmake b/indra/cmake/00-Common.cmake index 98eeed09b3..303f7e5608 100644 --- a/indra/cmake/00-Common.cmake +++ b/indra/cmake/00-Common.cmake @@ -51,6 +51,7 @@ if (WINDOWS) set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${LL_CXX_FLAGS} /O2 /Zi /MD /MP /Ob2 -D_SECURE_STL=0 -D_HAS_ITERATOR_DEBUGGING=0" CACHE STRING "C++ compiler release options" FORCE) + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LARGEADDRESSAWARE") set(CMAKE_CXX_STANDARD_LIBRARIES "") set(CMAKE_C_STANDARD_LIBRARIES "") |