Ticket #4190: 0002-Large-address-aware.patch

File 0002-Large-address-aware.patch, 1.5 KB (added by Itms, 8 years ago)
  • build/premake/premake4.lua

    From 9580dc66652a2966f09fb2e7b7127e0d941151aa Mon Sep 17 00:00:00 2001
    From: na-Itms <na.itms76@gmail.com>
    Date: Mon, 5 Sep 2016 10:25:06 +0200
    Subject: [PATCH 2/2] Large address aware
    
    ---
     build/premake/premake4.lua | 7 +++++++
     1 file changed, 7 insertions(+)
    
    diff --git a/build/premake/premake4.lua b/build/premake/premake4.lua
    index 4a6d930..5c5c554 100644
    a b newoption { trigger = "sysroot", description = "Set compiler system root path, u  
    2424-- Windows specific options
    2525newoption { trigger = "build-shared-glooxwrapper", description = "Rebuild glooxwrapper DLL for Windows. Requires the same compiler version that gloox was built with" }
    2626newoption { trigger = "use-shared-glooxwrapper", description = "Use prebuilt glooxwrapper DLL for Windows" }
     27newoption { trigger = "large-address-aware", description = "Make the executable large address aware. Do not use for development, in order to spot memory issues easily" }
    2728
    2829-- Install options
    2930newoption { trigger = "bindir", description = "Directory for executables (typically '/usr/games'); default is to be relocatable" }
    function setup_main_exe ()  
    974975            "/DELAY:UNLOAD",
    975976        }
    976977
     978        -- allow the executable to use more than 2GB of RAM.
     979        -- this should not be enabled during development, so that memory issues are easily spotted.
     980        if _OPTIONS["large-address-aware"] then
     981            linkoptions { "/LARGEADDRESSAWARE" }
     982        end
     983
    977984        -- see manifest.cpp
    978985        project_add_manifest()
    979986