Commits

Anonymous committed 0b07d18

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

  • Participants
  • Parent commits 600f3b3

Comments (0)

Files changed (1)

indra/cmake/00-Common.cmake

   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 "")