Skip to content
Snippets Groups Projects
Commit 6c1196d0 authored by Tank_Master's avatar Tank_Master
Browse files

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
parent ce563795
No related branches found
No related tags found
No related merge requests found
......@@ -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 "")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment